站内搜索: 请输入搜索关键词
当前页面: 图书首页 > MIDP Style Guide for the Java 2 Platform, Micro Edition

MIDP Style Guide for the Java 2 Platform, Micro Edition

[ directory ] Previous Section Next Section

8.1 Labels

All items can have a label, which is a string associated with the item. Figure 8.1 shows an item with a label.

Figure 8.1. Item Label on a Form

graphics/08fig01.gif

Application Developer Responsibilities

MIDP Implementor Responsibilities

  • Any label text

  • Text-display policy (wrapped or clipped)

  • Placement in relation to item content

  • Item placement if label is not present

  • Font and color (if different from item font)

  • Visibility as the user scrolls through a form

  • Whether to use as the title of the editing screen for items edited off the form

  • Maximum size of a label

For information on laying out labels on a form, see "Label Sizes" on page 73. For information on labels and how to use them when a user edits an item off the form, see "System-Generated Screens" on page 36.

Application Developers

Strongly Recommend: graphics/bulb1_icon.gif Provide labels that act as a prompt or provide instructions to the user for all interactive items.

Recommend: graphics/bulb2_icon.gif Keep your labels short and to the point to conserve space on small displays. Limit their length to two lines on a small screen (test the application on a device with a small screen, such as one with dimensions of 96-by-54 pixels). Use wording that makes sense, even if it is shortened, to help keep your application usable even if its labels must be clipped.

Consider: You can change an item label as needed. Try to do it only when the form is not visible or in response to a user action. Arbitrary changes to visible screens are confusing to users.

    [ directory ] Previous Section Next Section