(Redirected from GnCaptureSignatureEmbedded)
- Widget XML tag
GnSignatureEmbeddedinherits regular Android
- It does not open new activity for signature entry and it allows a signature to be drawn directly into it on a screen containing other widgets.
- If widget is used to take signature over existing layout this widget needs to be last in xml (top shown) in the hierarchy and stretch over all widgets to "overlay" existing layout and part of
XML Attributes Description
||Displays text in the middle of the widget
||Event which will be executed after user has taken signature with this widget.|
||Event which will be executed after user has canceled or pressed back when taking media with this widget.
More information here
||disables internal event which is predefined for embedded signature controls (i.e. cancel or clear). This provides option to call internal events only externally by using this attribute together with action gn:callWidgetEvent.
||Defines custom layout to parse for widget, by default is used: widget_en_embedded_signature_controls.xml|
<com.ginstr.widgets.GnButton android:layout_width="wrap_content" android:layout_height="wrap_content" gn:backgroundChecked="@drawable/fuelRed" gn:backgroundUnchecked="@drawable/fuelBlue" />
- If the default look and feel needs to be changed, create or copy identical files from $defaultApp to current app "control" folder.
- To provide alternative layout, the files mentioned above can be set into control folder of the current application. Files must be named as shown above and widgets with Id’s have to stay of same type and keep same id.
Widget Name Description
this is the container that holds all the controls
Cancels taking signature and returns to previous screen
Clears user entered content on signature area
Saves user entered content and signature background and returns to previous screen