m (formatting) |
|||
Line 10: | Line 10: | ||
===Scroll to widget=== | ===Scroll to widget=== | ||
− | ;<code>[gn:act_scrollTo]|[targetContainer,target]</code> | + | :;<code>[gn:act_scrollTo]|[targetContainer,target]</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 | ||
|- | |- | ||
− | | [[target|targetContainer]] | + | | <code>[[target|targetContainer]]</code> |
| [[:Category:Widgets|widget]] which contain [[target]] | | [[:Category:Widgets|widget]] which contain [[target]] | ||
* Valid [[:Category:Widgets|widgets]]: | * Valid [[:Category:Widgets|widgets]]: | ||
− | ** [https://developer.android.com/reference/android/widget/ScrollView.html ScrollView] | + | ** <code>[https://developer.android.com/reference/android/widget/ScrollView.html ScrollView]</code> |
|- | |- | ||
− | | [[target]] | + | | <code>[[target]]</code> |
| [[target]] which will be displayed on the screen after scroll is executed | | [[target]] which will be displayed on the screen after scroll is executed | ||
* Valid [[target|targets]]: | * Valid [[target|targets]]: | ||
Line 30: | Line 30: | ||
====Example==== | ====Example==== | ||
− | <code>@+id/scrollData</code> - ScrollView<br> | + | :<code>@+id/scrollData</code> - ScrollView<br> |
− | <code>@+id/screen4_readMeterValue</code> - widget | + | :<code>@+id/screen4_readMeterValue</code> - widget<br> |
− | <code>[gn:act_scrollTo]|[@+id/scrollData,@+id/screen4_readMeterValue]</code> | + | :; ⤷ <code>[gn:act_scrollTo]|[@+id/scrollData,@+id/screen4_readMeterValue]</code> |
<hr> | <hr> |
Latest revision as of 15:52, 12 July 2017
gn:act_scrollTo
- Description
- Action used to execute automatic scrolling to a certain widget on screen.
- Action returns
- void
Action signatures
Scroll to widget
[gn:act_scrollTo]|[targetContainer,target]
Parameter Description targetContainer
widget which contain target - Valid widgets:
target
target which will be displayed on the screen after scroll is executed
Example
@+id/scrollData
- ScrollView@+id/screen4_readMeterValue
- widget
- ⤷
[gn:act_scrollTo]|[@+id/scrollData,@+id/screen4_readMeterValue]
- ⤷