Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?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:paddingBottom="@dimen/activity_vertical_margin"
- android:paddingLeft="@dimen/activity_horizontal_margin"
- android:paddingRight="@dimen/activity_horizontal_margin"
- android:paddingTop="@dimen/activity_vertical_margin"
- android:orientation="vertical"
- tools:context=".LoginActivity">
- <ImageView
- android:background="@drawable/logo"
- android:layout_gravity="center_horizontal"
- android:layout_width="150dp"
- android:layout_height="150dp" />
- <android.support.design.widget.TextInputLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="8dp"
- android:layout_marginBottom="8dp">
- <EditText
- android:id="@+id/username"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:hint="Username"
- android:inputType="textPersonName" />
- </android.support.design.widget.TextInputLayout>
- <android.support.design.widget.TextInputLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="8dp"
- android:layout_marginBottom="8dp">
- <EditText android:id="@+id/editTextPassword"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:inputType="textPassword"
- android:hint="Password"/>
- </android.support.design.widget.TextInputLayout>
- <ProgressBar
- android:id="@+id/pDialog"
- android:layout_width="match_parent"
- android:layout_height="wrap_content" />
- <android.support.v7.widget.AppCompatButton
- android:id="@+id/buttonLogin"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:background="@color/colorPrimary"
- android:textColor="@android:color/white"
- android:layout_marginTop="24dp"
- android:layout_marginBottom="24dp"
- android:padding="12dp"
- android:text="Login"/>
- </LinearLayout>
Add Comment
Please, Sign In to add comment