166 lines
4.9 KiB
XML
166 lines
4.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<LinearLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:orientation="vertical"
|
|
android:weightSum="6"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="#080808"
|
|
android:paddingBottom="@dimen/activity_vertical_margin"
|
|
android:paddingLeft="@dimen/activity_horizontal_margin"
|
|
android:paddingRight="@dimen/activity_horizontal_margin"
|
|
android:paddingTop="@dimen/activity_vertical_margin"
|
|
tools:context="us.keithirwin.tracman.LoginActivity"
|
|
android:clickable="true">
|
|
|
|
<!-- Header -->
|
|
<RelativeLayout android:orientation="vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:gravity="center" >
|
|
|
|
<!-- Logo -->
|
|
<ImageView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:contentDescription="@string/logo_description"
|
|
android:padding="5dp"
|
|
android:src="@drawable/logo_by" />
|
|
|
|
<!-- Title -->
|
|
<TextView
|
|
android:id="@+id/login_title"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="60dp"
|
|
android:layout_marginStart="60dp"
|
|
android:text="@string/app_name"
|
|
android:textSize="50sp"
|
|
android:textColor="@color/Yellow"/>
|
|
|
|
</RelativeLayout>
|
|
|
|
<!-- Description -->
|
|
<LinearLayout android:orientation="vertical"
|
|
android:layout_weight="1"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content" >
|
|
<TextView
|
|
android:id="@+id/login_description"
|
|
android:text="@string/login_description"
|
|
android:textSize="20sp"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"/>
|
|
</LinearLayout>
|
|
|
|
<!-- Social login buttons -->
|
|
<LinearLayout android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:layout_marginBottom="30px" >
|
|
|
|
<!-- Google -->
|
|
<com.google.android.gms.common.SignInButton
|
|
android:id="@+id/login_button_google"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center" />
|
|
|
|
<!--<!– Google –>-->
|
|
<!--<ImageButton
|
|
android:id="@+id/login_button_google"
|
|
android:layout_width="wrap_content"
|
|
android:layout_weight="1"
|
|
android:layout_height="match_parent"
|
|
android:background="#ce4d39"
|
|
android:layout_marginLeft="30px"
|
|
android:layout_marginRight="30px"
|
|
android:src="@drawable/social_google" />-->
|
|
|
|
<!--<!– Facebook –>-->
|
|
<!--<ImageButton
|
|
android:id="@+id/login_button_facebook"
|
|
android:layout_width="wrap_content"
|
|
android:layout_weight="1"
|
|
android:layout_height="match_parent"
|
|
android:background="#305891"
|
|
android:layout_marginLeft="30px"
|
|
android:layout_marginRight="30px"
|
|
android:src="@drawable/social_facebook" />-->
|
|
|
|
<!--<!– Twitter –>-->
|
|
<!--<ImageButton
|
|
android:id="@+id/login_button_twitter"
|
|
android:layout_width="wrap_content"
|
|
android:layout_weight="1"
|
|
android:layout_height="match_parent"
|
|
android:background="#2ca8d2"
|
|
android:layout_marginLeft="30px"
|
|
android:layout_marginRight="30px"
|
|
android:src="@drawable/social_twitter" />-->
|
|
|
|
</LinearLayout>
|
|
|
|
<!-- Login form -->
|
|
<LinearLayout android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical" >
|
|
|
|
<!-- Email -->
|
|
<EditText
|
|
android:id="@+id/login_email"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:hint="@string/email"
|
|
android:inputType="textEmailAddress"
|
|
android:textSize="24sp"/>
|
|
|
|
<!-- Password -->
|
|
<EditText
|
|
android:id="@+id/login_password"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:inputType="textPassword"
|
|
android:hint="@string/password"
|
|
android:textSize="24sp"/>
|
|
|
|
<!-- Submit -->
|
|
<Button
|
|
android:id="@+id/login_button"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:padding="15dp"
|
|
android:text="@string/login_button_text"
|
|
android:textSize="34sp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<!-- Extra text -->
|
|
<LinearLayout android:layout_height="31dp"
|
|
android:layout_width="match_parent"
|
|
android:orientation="vertical"
|
|
android:layout_marginTop="20px" >
|
|
|
|
<!-- Forgot password link -->
|
|
<TextView android:id="@+id/login_forgot_password"
|
|
android:text="@string/login_forgot_password"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:textSize="20sp" />
|
|
|
|
<!-- Errors -->
|
|
<TextView
|
|
android:id="@+id/login_error"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center"
|
|
android:textColor="@color/Red"
|
|
android:textSize="22sp" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout> |