mirror of https://github.com/ThmmyNoLife/mTHMMY
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
129 lines
5.1 KiB
129 lines
5.1 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="fill_parent"
|
|
android:fitsSystemWindows="true">
|
|
|
|
<ScrollView
|
|
android:id="@+id/inner_scroll_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="top"
|
|
android:focusableInTouchMode="true"
|
|
android:orientation="vertical"
|
|
android:paddingLeft="24dp"
|
|
android:paddingRight="24dp">
|
|
|
|
<Space
|
|
android:layout_width="match_parent"
|
|
android:layout_height="25dp"/>
|
|
|
|
<ImageView
|
|
android:id="@+id/thmmyLogo"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="144dp"
|
|
android:layout_gravity="center_horizontal"
|
|
android:layout_marginBottom="0dp"
|
|
android:contentDescription="@string/thmmy_img_description"
|
|
android:src="@drawable/logo_try_no_letter"/>
|
|
|
|
<ImageView
|
|
android:id="@+id/thmmy3dImg"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="40dp"
|
|
android:layout_gravity="center_horizontal"
|
|
android:layout_marginBottom="0dp"
|
|
android:contentDescription="@string/thmmy_img_description"
|
|
android:src="@drawable/thmmy_material_somehow"/>
|
|
|
|
<Space
|
|
android:layout_width="match_parent"
|
|
android:layout_height="10dp"/>
|
|
|
|
<!-- Username Label -->
|
|
<android.support.design.widget.TextInputLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="8dp"
|
|
android:layout_marginTop="8dp">
|
|
|
|
<EditText
|
|
android:id="@+id/username"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:hint="@string/hint_username"
|
|
android:inputType="textPersonName"/>
|
|
</android.support.design.widget.TextInputLayout>
|
|
|
|
<!-- Password Label -->
|
|
<android.support.design.widget.TextInputLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="8dp"
|
|
android:layout_marginTop="8dp"
|
|
app:passwordToggleEnabled="true">
|
|
|
|
<EditText
|
|
android:id="@+id/password"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:hint="@string/hint_password"
|
|
android:inputType="textPassword"/>
|
|
</android.support.design.widget.TextInputLayout>
|
|
|
|
<!-- Login Button -->
|
|
<android.support.v7.widget.AppCompatButton
|
|
android:id="@+id/btnLogin"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="24dp"
|
|
android:layout_marginTop="24dp"
|
|
android:padding="12dp"
|
|
android:text="@string/btn_login"
|
|
android:textSize="18sp"/>
|
|
|
|
<Button
|
|
android:id="@+id/btnContinueAsGuest"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="24dp"
|
|
android:layout_marginTop="40dip"
|
|
android:background="@null"
|
|
android:text="@string/btn_continue_as_guest"
|
|
android:textAllCaps="false"
|
|
android:textSize="15sp"/>
|
|
|
|
</LinearLayout>
|
|
</ScrollView>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/login_progress_bar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:gravity="center"
|
|
android:orientation="vertical"
|
|
android:visibility="invisible">
|
|
|
|
<ProgressBar
|
|
style="?android:attr/progressBarStyleInverse"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:background="@drawable/progress_bar_bg"/>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginTop="10dp"
|
|
android:text="@string/login_spinner"
|
|
android:textColor="@color/accent"
|
|
android:textSize="20sp"
|
|
android:textStyle="bold"/>
|
|
</LinearLayout>
|
|
</RelativeLayout>
|