wulkanowy-mod/app/src/main/res/layout/activity_login.xml

139 lines
5.7 KiB
XML
Raw Normal View History

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
2018-03-04 05:49:16 -06:00
android:id="@+id/login_activity_container"
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"
2018-03-04 05:49:16 -06:00
tools:context="io.github.wulkanowy.ui.login.LoginActivity">
<!-- Login progress -->
<RelativeLayout
2018-03-04 05:49:16 -06:00
android:id="@+id/login_activity_progress_container"
android:layout_width="match_parent"
2018-03-04 05:49:16 -06:00
android:layout_height="match_parent"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
2018-03-04 05:49:16 -06:00
android:gravity="center"
android:visibility="gone">
<ProgressBar
2018-03-04 05:49:16 -06:00
android:id="@+id/login_activity_progress_bar"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2018-05-19 12:58:33 -05:00
android:layout_below="@id/login_activity_progress_text"
android:layout_centerHorizontal="true"
android:indeterminate="true"
android:minHeight="30dp"
android:minWidth="220dp" />
<TextView
2018-03-04 05:49:16 -06:00
android:id="@+id/login_activity_progress_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
2018-05-19 12:58:33 -05:00
android:layout_marginBottom="15dp"
android:text="@string/app_name" />
</RelativeLayout>
<ScrollView
2018-03-04 05:49:16 -06:00
android:id="@+id/login_activity_form_scroll"
android:layout_width="match_parent"
2018-03-04 05:49:16 -06:00
android:layout_height="wrap_content">
<LinearLayout
2018-03-04 05:49:16 -06:00
android:id="@+id/login_activity_form_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2018-03-04 05:49:16 -06:00
android:orientation="vertical">
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="24dp"
2018-03-04 05:49:16 -06:00
android:text="@string/login_heading" />
<android.support.design.widget.TextInputLayout
2018-03-04 05:49:16 -06:00
android:id="@+id/login_activity_email_text_input"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2018-03-04 05:49:16 -06:00
android:layout_marginBottom="12dp">
<EditText
2018-03-04 05:49:16 -06:00
android:id="@+id/login_activity_email_edit"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/prompt_email"
android:inputType="textEmailAddress"
2018-03-04 05:49:16 -06:00
android:maxLines="1" />
</android.support.design.widget.TextInputLayout>
<android.support.design.widget.TextInputLayout
2018-03-04 05:49:16 -06:00
android:id="@+id/login_activity_pass_text_input"
android:layout_width="match_parent"
2018-03-04 05:49:16 -06:00
android:layout_height="wrap_content">
<EditText
2018-03-04 05:49:16 -06:00
android:id="@+id/login_activity_pass_edit"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2018-03-04 05:49:16 -06:00
android:fontFamily="sans-serif"
android:hint="@string/prompt_password"
android:imeActionLabel="@string/action_sign_in"
android:imeOptions="actionDone"
2018-03-04 05:49:16 -06:00
android:inputType="textPassword"
android:maxLines="1" />
</android.support.design.widget.TextInputLayout>
<android.support.design.widget.TextInputLayout
2018-03-04 05:49:16 -06:00
android:id="@+id/login_activity_symbol_text_input"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2018-03-04 05:49:16 -06:00
android:visibility="gone">
<AutoCompleteTextView
2018-03-04 05:49:16 -06:00
android:id="@+id/login_activity_symbol_edit"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/prompt_symbol"
android:imeActionLabel="@string/action_sign_in"
android:imeOptions="actionDone"
android:importantForAutofill="noExcludeDescendants"
2018-03-04 05:49:16 -06:00
android:inputType="textAutoComplete"
android:maxLines="1" />
</android.support.design.widget.TextInputLayout>
<Button
2018-03-04 05:49:16 -06:00
android:id="@+id/login_activity_sign_button"
style="?android:textAppearanceSmall"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="24dp"
2018-03-04 05:49:16 -06:00
android:layout_marginTop="16dp"
android:text="@string/action_sign_in"
2018-03-04 05:49:16 -06:00
android:textStyle="bold" />
<TextView
2018-03-04 05:49:16 -06:00
android:id="@+id/login_activity_create_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="24dp"
2018-03-04 05:49:16 -06:00
android:text="@string/action_create_account" />
<TextView
2018-03-04 05:49:16 -06:00
android:id="@+id/login_activity_forgot_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2018-03-04 05:49:16 -06:00
android:text="@string/action_forgot_password" />
</LinearLayout>
</ScrollView>
</RelativeLayout>