(→Change displayed layout as parameter) |
m (formatting) |
||
Line 10: | Line 10: | ||
===Change displayed layout as action=== | ===Change displayed layout as action=== | ||
− | ;<code>[gn:act_toLayoutClick]|[layout]</code> | + | :;<code>[gn:act_toLayoutClick]|[layout]</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 | ||
|- | |- | ||
− | | layout | + | | <code>layout</code> |
| [[target]] which will be displayed on the screen | | [[target]] which will be displayed on the screen | ||
Can be | Can be | ||
* hardcoded id of target root layout | * hardcoded id of target root layout | ||
− | * [[GnDropDown]] which has "local" datasource from @array/someArray with @array/someArray_value, someArray_value should contain id’s of root layouts for screens without @+id/prefix (this can be used on i.e. gn:act_setItemSelect of dropdown when value is changed to go to different screen or in other scenarios) | + | * <code>[[GnDropDown]]</code> which has "local" datasource from <code>@array/someArray</code> with <code>@array/someArray_value</code>, |
+ | :<code>someArray_value</code> should contain id’s of root layouts for screens without <code>@+id/prefix</code> | ||
+ | ::(this can be used on i.e. <code>[[gn:act_setItemSelect]]</code> of dropdown when value is changed to go to different screen or in other scenarios) | ||
|- | |- | ||
|} | |} | ||
====Example==== | ====Example==== | ||
− | <code>@+id/screen1</code> - layout | + | :<code>@+id/screen1</code> - layout<br> |
− | <code>[gn:act_toLayoutClick]|[@+id/screen1]</code> | + | :; ⤷ <code>[gn:act_toLayoutClick]|[@+id/screen1]</code> |
<hr> | <hr> | ||
===Change displayed layout as widget parameter=== | ===Change displayed layout as widget parameter=== | ||
− | ;<code>gn:act_toLayoutClick="target"</code> | + | :;<code>gn:act_toLayoutClick="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 | ||
|- | |- | ||
− | | layout | + | | <code>layout</code> |
| [[target]] which will be displayed on the screen | | [[target]] which will be displayed on the screen | ||
Can be | Can be | ||
* hardcoded id of target root layout | * hardcoded id of target root layout | ||
− | * [[GnDropDown]] which has "local" datasource from @array/someArray with @array/someArray_value, someArray_value should contain id’s of root layouts for screens without @+id/prefix (this can be used on i.e. gn:act_setItemSelect of dropdown when value is changed to go to different screen or in other scenarios) | + | * <code>[[GnDropDown]]</code> which has "local" datasource from <code>@array/someArray</code> with <code>@array/someArray_value</code>, |
+ | :<code>someArray_value</code> should contain id’s of root layouts for screens without <code>@+id/prefix</code> | ||
+ | ::(this can be used on i.e. <code>[[gn:act_setItemSelect]]</code> of dropdown when value is changed to go to different screen or in other scenarios) | ||
|- | |- | ||
|} | |} |
Revision as of 19:52, 12 July 2017
gn:act_toLayoutClick
- Description
- Action used to change displayed root layout to desired target.
- Action returns
- boolean
Action signatures
Change displayed layout as action
[gn:act_toLayoutClick]|[layout]
Parameter Description layout
target which will be displayed on the screen Can be
- hardcoded id of target root layout
GnDropDown
which has "local" datasource from@array/someArray
with@array/someArray_value
,
someArray_value
should contain id’s of root layouts for screens without@+id/prefix
- (this can be used on i.e.
gn:act_setItemSelect
of dropdown when value is changed to go to different screen or in other scenarios)
- (this can be used on i.e.
Example
@+id/screen1
- layout
- ⤷
[gn:act_toLayoutClick]|[@+id/screen1]
- ⤷
Change displayed layout as widget parameter
gn:act_toLayoutClick="target"
Parameter Description layout
target which will be displayed on the screen Can be
- hardcoded id of target root layout
GnDropDown
which has "local" datasource from@array/someArray
with@array/someArray_value
,
someArray_value
should contain id’s of root layouts for screens without@+id/prefix
- (this can be used on i.e.
gn:act_setItemSelect
of dropdown when value is changed to go to different screen or in other scenarios)
- (this can be used on i.e.
Example
<Button android:id="@+id/btnMenuNewObject" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/btnMenuNewObject" gn:act_toLayoutClick="@+id/add_new_object" />