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

Single screen save

This widget creates a new screen. It has a built in SAVE button which executes SAVE action.
Screens are containers for all other widgets.

This screenSave widget allows adding additional widgets into a screen.
If those widgets exceed screen size, then the screen becomes scrollable.

Widget id, ${gbamID}:

screenSave

Back to GBAM widgets table

Predefined user data

Properties panel

User will configure this data in properties panels of selected widget:

GENERAL
VALIDATIONS
  • -
ACTION
  • -
ACTION MESSAGES
  • -

Code snippets

GBAM Code Variables

Variables which are used in code snippet below but not defined in user modifiable inputs.

Common widget code

<ScrollView 
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    xmlns:gn="http://schemas.ginstr.com/ginstr"
    android:id="@+id/${screenLabelGenerated}_screen"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    gn:style="@style/screenSave_scrollView">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical"
        gn:style="@style/screenSave_linearLayout>

    WIDGETS ADDED BY USER GO HERE
    WIDGET BUTTON SAVE GOES HERE
    
    </LinearLayout>
</ScrollView>