123 lines
4.5 KiB
XML
123 lines
4.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
android:background="@color/white"
|
|
tools:context="ch.pizzalink.android.activity.LoginActivity"
|
|
android:focusable="true"
|
|
android:focusableInTouchMode="true">
|
|
|
|
<ch.pizzalink.android.view.PizzalinkToolbar
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:title="@string/activity_title_login"
|
|
android:background="@color/white"
|
|
app:titleTextColor="@color/navy" />
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<ImageView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:scaleType="centerCrop"
|
|
android:src="@drawable/background_wood" />
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_above="@+id/loginLayout"
|
|
android:layout_alignParentTop="true">
|
|
|
|
<ImageView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerInParent="true"
|
|
android:adjustViewBounds="true"
|
|
android:scaleType="fitXY"
|
|
android:src="@drawable/splash_logo"
|
|
android:text="Hello World!" />
|
|
|
|
</RelativeLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/loginLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_above="@+id/loginBottomLayout"
|
|
android:layout_centerInParent="true"
|
|
android:orientation="vertical">
|
|
|
|
<ch.pizzalink.android.view.PizzalinkEditText
|
|
android:id="@+id/emailPizzalinkEditText"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:hint="@string/email"
|
|
app:inputType="email" />
|
|
|
|
<ch.pizzalink.android.view.PizzalinkEditText
|
|
android:id="@+id/passwordPizzalinkEditText"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:hint="@string/password"
|
|
app:inputType="password" />
|
|
|
|
<android.support.v4.widget.Space
|
|
android:layout_width="match_parent"
|
|
android:layout_height="24dp" />
|
|
|
|
<Button
|
|
android:id="@+id/loginButton"
|
|
style="@style/PizzalinkRedButton"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="48dp"
|
|
android:layout_marginBottom="16dp"
|
|
android:layout_marginTop="16dp"
|
|
android:text="@string/button_login" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/loginBottomLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentBottom="true"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/forgotPasswordTextView"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_horizontal"
|
|
android:gravity="center_horizontal"
|
|
android:padding="24dp"
|
|
android:text="@string/register_text"
|
|
android:textColor="@color/white" />
|
|
|
|
<TextView
|
|
android:id="@+id/registerTextView"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_horizontal"
|
|
android:gravity="center_horizontal"
|
|
android:paddingBottom="24dp"
|
|
android:paddingEnd="24dp"
|
|
android:paddingLeft="24dp"
|
|
android:paddingRight="24dp"
|
|
android:paddingStart="24dp"
|
|
android:text="@string/register_text"
|
|
android:textColor="@color/white" />
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
</LinearLayout>
|