From wiki.ginstr.com
Revision as of 14:36, 1 June 2020 by Dinko (talk | contribs) (Action signatures)
Jump to: navigation, search

act_zoomToSpan

Description
Zoom GnMap to all visible elements on the map
Action returns
void

Action signatures

[gn:act_zoomToSpan]|[target]
Parameter Description
target target on which the action will be executed

Example

screen.xml
<com.ginstr.widgets.GnCaptureSignatureEmbedded
    android:id="@+id/embeddedSignature"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    gn:backgroundColor="TRANSPARENT"
    gn:strokeColor="#3974d3"
    gn:signatureCaptureWidgetId="@+id/signatureBox"
    gn:controlPaddingWidgetId="@+id/controlsBox"
    gn:disableInternalEvents="clear"/>

<FrameLayout
    android:id="@+id/exampleFrame"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:visibility="gone"
    gn:act_set="[gn:callWidgetEvent]|[@+id/embeddedSignature,clear]" />