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

Note

Widget is used as a static textual note for descriptive purposes on UI. Widget does not participate in data operations.

Widget id, ${gbamID}

note

Back to GBAM widgets table

Predefined user data

PreLoaded

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

<com.ginstr.widgets.GnTextView
    android:id="@+id/${widgetID}_label"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:text="@string/${widgetID}"
    gn:style="@style/note_label"/>

strings.xml

Lines to be added for each language.

<string name="${widgetID}">${widgetLabel}</string>