m (formatting) |
|||
Line 10: | Line 10: | ||
===Show progress dialog=== | ===Show progress dialog=== | ||
− | ;<code>[gn:act_showProgressDialog]|[source,maxValue,currentValue,keyword]</code> | + | :;<code>[gn:act_showProgressDialog]|[source,maxValue,currentValue,keyword]</code> |
− | {| class="wikitable sortable" style="font-size: 85%; text-align: left;" | + | :{| class="wikitable sortable" style="font-size: 85%; text-align: left;" |
|- | |- | ||
! scope="col" | Parameter | ! scope="col" | Parameter | ||
! scope="col" | Description | ! scope="col" | Description | ||
|- | |- | ||
− | | [[source]] | + | | <code>[[source]]</code> |
| [[source]] from where the progress dialog message will be used | | [[source]] from where the progress dialog message will be used | ||
* Valid [[source|sources]]: | * Valid [[source|sources]]: | ||
** any [[source]] | ** any [[source]] | ||
|- | |- | ||
− | | maxValue | + | | <code>maxValue</code> |
| number which represents the maximum value | | number which represents the maximum value | ||
|- | |- | ||
− | | currentValue | + | | <code>currentValue</code> |
| number which represents the current value | | number which represents the current value | ||
|- | |- | ||
− | | keyword | + | | <code>keyword</code> |
− | | | + | | defines the progress dialog type |
Can be: | Can be: | ||
* <code>SPINNER</code> | * <code>SPINNER</code> | ||
Line 37: | Line 37: | ||
====Example==== | ====Example==== | ||
− | <code>@+id/dialogMessage</code> - source<br> | + | :<code>@+id/dialogMessage</code> - source<br> |
− | <code>100</code> - maxValue<br> | + | :<code>100</code> - maxValue<br> |
− | <code>100</code> - currentValue<br> | + | :<code>100</code> - currentValue<br> |
− | <code>SPINNER</code> - keyword | + | :<code>SPINNER</code> - keyword<br> |
− | <code>[gn:act_showProgressDialog]|[@+id/dialogMessage,100,100,SPINNER]</code> | + | :; ⤷ <code>[gn:act_showProgressDialog]|[@+id/dialogMessage,100,100,SPINNER]</code> |
<hr> | <hr> |
Revision as of 15:01, 12 July 2017
gn:act_showProgressDialog
- Description
- Action used to display a progress dialog.
- Action returns
- void
Action signatures
Show progress dialog
[gn:act_showProgressDialog]|[source,maxValue,currentValue,keyword]
Parameter Description source
source from where the progress dialog message will be used maxValue
number which represents the maximum value currentValue
number which represents the current value keyword
defines the progress dialog type Can be:
SPINNER
HORIZONTAL
Example
@+id/dialogMessage
- source100
- maxValue100
- currentValueSPINNER
- keyword
- ⤷
[gn:act_showProgressDialog]|[@+id/dialogMessage,100,100,SPINNER]
- ⤷