From wiki.ginstr.com
Revision as of 16:51, 10 March 2020 by Bojan (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

gn:act_resetWidgets

Description
Action used to reset widget(s) to default state.
Action returns
void

Action signatures

[gn:act_resetWidgets]|[target{n}]
Parameter Description
target{n} target on or more targets

Example

screen.xml

<com.ginstr.widgets.GnImageEditor
    android:id="@+id/imageEditor"
    android:layout_width="match_parent"
    android:layout_height="0dp"
    android:layout_weight="1"
    gn:canvasBackgroundColor="#00FFFFFF"
    gn:dataType="pictures"
    gn:centeredLockedImage="@drawable/settings"/>

<FrameLayout
    android:id="@+id/exampleFrame"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:visibility="gone"
    gn:act_set="[gn:act_resetWidgets]|[@+id/imageEditor]" />
after action execution

once gn:act_resetWidgets is executed @+id/imageEditor will be reset to default state.