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

!! NOT USED PAGE CAN BE DELETED !!

Login

Widget is used for authenticating with ginstr cloud. Prior to any data operations in ginstr app, login must be executed.
Once login is successful next screen will be displayed, if it fails appropriate fail message will be shown.

Widget id, ${widgetID}:

startGnLogin

Back to ginstr app composer reference

Predefined user data

PreLoaded

AutoLoaded data which is known:

  • ${pageName} - name of the page to which widgets are added

Properties panel

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

GENERAL:

  • ${widgetLabel} - name of the widget user added to the screen
  • ${pageAfterLogin} - user selected the page to go to after successful login , id of root element of page will be used

Code snippets

Common widget code

<com.ginstr.widgets.GnLogin
    appComposerId="Login"
    android:id="@+id/${pageName}$_{widgetLabel}_login"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_below="@+id/txtAppName"
    android:layout_centerHorizontal="true"
    android:layout_marginLeft="20dp"
    android:layout_marginRight="20dp"
    gn:style="@style/${widgetID}"
    gn:act_toLayoutLogin="${pageAfterLogin}" />