Indicators
Indicators are used to show that activity is taking place, even it itâs not visible, and in some cases, to show some measure of the progress of the activity. Mojo has four indicator widgets, but they belong to two types:
Activity indicator, or Spinner, which spins without showing progress
Progress indicator, which shows both activity and progress
The spinner is the only activity indicator, but there are three progress indicator widgets:
Progress Pill, a wide pill that is styled to match the View menu and the
palm-header
scene styleProgress Bar, a narrow horizontal bar with a blue progress indicator
Progress Slider, which is intended for streaming media playback applications
The Spinner widget is most appropriate when there isnât much space in the layout for an indicator or when the duration of the activity is hard to estimate. In other cases you should use a progress indicator; itâs preferable because it gives the user a bounded sense of duration.
Spinners
Use a spinner to show that an activity is taking place. The framework uses a spinner as part of any activity button, and youâll see it used in the core applications. There are two sizes; the large spinner is 128 Ã 128 pixels, and the small spinner is 32 Ã 32 pixels. These sizes are optimized for the Palm PrÄ screen and may vary on other devices, but the spatial and visual characteristics will be maintained on other devices.
Back to the News: Adding a spinner for feed updates
There arenât any long operations in News ...
Get Palm webOS now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.