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

Screen scroll

This widget creates a new screen.
Screens are containers for all other widgets.

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

Widget id, ${gbamID}:

screenScroll

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"
  android:fillViewport="true"
  gn:style="@style/screenScroll_scrollView">

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

    .... added widgets to screen go here ...

  </LinearLayout>
</ScrollView>