m |
m |
||
Line 3: | Line 3: | ||
(<span style="color:#ff0000">MISSING</span>: information from Serge how to link other widgets) | (<span style="color:#ff0000">MISSING</span>: information from Serge how to link other widgets) | ||
− | < | + | <source lang="xml"> |
<?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||
<ScrollView | <ScrollView |
Revision as of 13:03, 23 June 2016
XML layout that represents first screen to be loaded when the application starts. This layout holds the login widget.
(MISSING: information from Serge how to link other widgets)
<source lang="xml"> <?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:ek="http://schemas.ginstr.com/ginstr" android:id="@+id/start" android:layout_width="match_parent" android:layout_height="match_parent" android:fillViewport="true" android:background="@drawable/background" ek:act_afterLoad="[ek:act_lockScreenOrientation]|[portrait]">
<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" android:layout_alignParentRight="true" android:background="@drawable/settings"/>
<ImageView android:id="@+id/icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" android:layout_marginTop="50dp" android:src="@drawable/app_icon"/>
<TextView android:id="@+id/txtAppName" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@+id/icon" android:layout_marginTop="20dp" android:layout_marginLeft="10dp" android:text="@string/homeAlert" android:gravity="center" android:textColor="#ffffff" android:textSize="30sp"/>
HERE GOES "Login" WIDGET EXTRACT
<ImageView android:id="@+id/footer" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:src="@drawable/background_i"/> </RelativeLayout>
</ScrollView> </source>