From wiki.ginstr.com
Revision as of 19:52, 12 July 2017 by Mark (talk | contribs) (formatting)
Jump to: navigation, search

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)

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)

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" />