m (formatting) |
m (formatting) |
||
Line 28: | Line 28: | ||
====Example==== | ====Example==== | ||
− | <code>@+id/screen1</code> - layout<br> | + | :<code>@+id/screen1</code> - layout<br> |
:; ⤷ <code>[gn:act_toLayoutLongClick]|[@+id/screen1]</code> | :; ⤷ <code>[gn:act_toLayoutLongClick]|[@+id/screen1]</code> | ||
<hr> | <hr> |
Latest revision as of 20:06, 12 July 2017
gn:act_toLayoutLongClick
- Description
- Action used to change displayed root layout to desired target.
- Action returns
- boolean
Action signatures
Change displayed layout as action
[gn:act_toLayoutLongClick]|[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_toLayoutLongClick]|[@+id/screen1]
- ⤷
Change displayed layout as widget parameter
gn:act_toLayoutLongClick="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_toLayoutLongClick="@+id/add_new_object" />