tracman-android/app/src/main/res/layout/activity_login.xml

145 lines
4.1 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="3"
android:layout_marginBottom="30px" >
<!-- Google -->
<ImageButton
android:layout_width="wrap_content"
android:layout_weight="1"
android:layout_height="match_parent" />
<!--android:src="@drawable/social_google" />-->
<!-- Facebook -->
<ImageButton
android:layout_width="wrap_content"
android:layout_weight="1"
android:layout_height="match_parent" />
<!--android:src="@drawable/social_facebook" />-->
<!-- Twitter -->
<ImageButton
android:layout_width="wrap_content"
android:layout_weight="1"
android:layout_height="match_parent" />
<!--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:text="@string/email"
android:textSize="24sp"/>
<!-- Password -->
<EditText
android:id="@+id/login_password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/password"
android:textSize="24sp"/>
<!-- Submit -->
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="3"
android:text="@string/login_button_text"
android:textSize="32sp" />
</LinearLayout>
<!-- Extra text -->
<LinearLayout android:layout_height="wrap_content"
android:layout_width="match_parent"
android:orientation="vertical"
android:layout_weight="1">
<!-- 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:textColor="@color/Yellow"
android:textSize="24sp" />
<!-- 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>