From wiki.ginstr.com
Jump to: navigation, search

gn:act_goLayoutBack

Description
Action used to change displayed root layout to layout from stack.
It returns to the desired existing layout in the stack, removing all layouts from the stack between the current layout and the desired layout.
Action returns
void

Action signatures

Return back to specific layout

As widget parameter:
gn:act_goLayoutBack="target"
As action:
[gn:act_goLayoutBack]|[target]
Parameter Description
target target layout where the while action is using value as expression parameter

Example

@+id/targetLayoutId - layout id
gn:act_goLayoutBack="@+id/targetLayoutId"
[gn:act_goLayoutBack]|[@+id/targetLayoutId]

Return back to specific layout without executing any event

As widget parameter:
gn:act_goLayoutBack="target,skip"
As action:
[gn:act_goLayoutBack]|[target,skip]
Parameter Description
target target layout where the while action is using value as expression parameter
skip keyword which disables execution of all back events

Example

@+id/targetLayoutId - layout id
skip - keyword
gn:act_goLayoutBack="@+id/targetLayoutId,skip"
[gn:act_goLayoutBack]|[@+id/targetLayoutId,skip]

Return back for specific number of layouts

As widget parameter:
gn:act_goLayoutBack="number"
As action:
[gn:act_goLayoutBack]|[number]
Parameter Description
number represents a number of how many layouts will be reversed

Example

5 - number of layouts which will be reverted
gn:act_goLayoutBack="5"
[gn:act_goLayoutBack]|[5]

Return back for specific number of layouts without executing any event

As widget parameter:
gn:act_goLayoutBack="number,skip"
As action:
[gn:act_goLayoutBack]|[number,skip]
Parameter Description
number represents a number of how many layouts will be reversed
skip keyword which disables execution of all back events

Example

5 - number of layouts which will be reverted
skip - keyword
gn:act_goLayoutBack="5,skip"
[gn:act_goLayoutBack]|[5,skip]