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

start.xml

start.xml is an XML layout that represents first screen to be loaded when the application starts. This layout holds the login widget. This layout should be used as is, if custom editing is required then a ginstr app developer will modify it.

<?xml version="1.0" encoding="utf-8"?>
<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/start"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:fillViewport="true"
    gn:act_afterLoad="[gn:act_lockScreenOrientation]|[portrait]"
    gn:style="@style/start_scrollView">

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content" >

	<com.ginstr.widgets.GnPreferencesButton
	    android:layout_width="wrap_content"
	    android:layout_height="wrap_content"
	    gn:style="@style/start_gnPreferencesButton"/>

        <com.ginstr.widgets.GnImageView
            android:id="@+id/icon"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
	    gn:style="@style/start_gnImageViewAppIcon"/>

		<com.ginstr.widgets.GnTextView
		    android:id="@+id/txtAppName"
		    android:layout_width="match_parent"
		    android:layout_height="wrap_content"
		    android:layout_below="@+id/icon"
		    android:text="@string/appName"
		    gn:style="@style/start_gnTextViewAppName"/>

		<com.ginstr.widgets.GnLogin
		    android:id="@+id/btnLogin"
		    android:layout_width="match_parent"
		    android:layout_height="wrap_content"
		    android:layout_below="@+id/txtAppName"
		    gn:act_toLayoutLogin="@+id/ordersScreen"
		    gn:style="@style/start_gnLogin"/>

		<RelativeLayout
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_below="@+id/btnLogin"
		    gn:style="@style/start_relativeLayoutFooterContainer">

		    <com.ginstr.widgets.GnImageView
		        android:id="@+id/footer"
			android:layout_width="match_parent"
			android:layout_height="wrap_content"
			android:layout_alignParentBottom="true"
			gn:style="@style/start_gnImageViewFooter"/>
		</RelativeLayout>
    </RelativeLayout>
</ScrollView>