Action: SHOW_PROGRESSBAR

The action SHOW_PROGRESSBAR shows or hides a progress bar if there is one defined in the screen. The action can be attached to the <screen> and <control> elements. Generally you would use this action to show a progressbar before starting a long task and hide it after the long task is finished.

Note

There can be only ONE PROGRESSBAR control defined in a screen.

Attributes

Attributes Value Mandatory
action_name SHOW_PROGRESSBAR Yes
event_list comma separated list of events, eg: TAP Yes
show true or false. Default is true No

Example 1

Below is the code snippet from the tutorial TODO Add a link. The screen contains a “SHOW” button which has an action SHOW_PROGRESSBAR with attribute show=”true” attached to it and a “HIDE” button which has an action SHOW_PROGRESSBAR with attribute show=”false” attached to it. Upon tapping the buttons the progress bar control becomes visible or invisible.

TODO Need the code snippet