mirror of
https://github.com/wulkanowy/wulkanowy.git
synced 2024-09-21 14:39:09 -05:00
156 lines
5.9 KiB
XML
156 lines
5.9 KiB
XML
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||
|
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:id="@+id/coordinatorLayout"
|
||
|
tools:context="io.github.wulkanowy.activity.login.LoginActivity"
|
||
|
>
|
||
|
|
||
|
<!-- Login progress -->
|
||
|
<RelativeLayout
|
||
|
android:id="@+id/login_progress"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:gravity="center_horizontal"
|
||
|
android:layout_centerVertical="true"
|
||
|
android:visibility="gone"
|
||
|
>
|
||
|
|
||
|
<ProgressBar
|
||
|
android:id="@+id/login_progress_horizontal"
|
||
|
style="?android:attr/progressBarStyleHorizontal"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_alignParentTop="true"
|
||
|
android:layout_centerHorizontal="true"
|
||
|
android:layout_marginTop="91dp"
|
||
|
android:minHeight="30dp"
|
||
|
android:indeterminate="true"
|
||
|
android:minWidth="220dp"
|
||
|
/>
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/login_progress_text"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_alignBottom="@+id/login_progress_horizontal"
|
||
|
android:layout_centerHorizontal="true"
|
||
|
android:layout_marginBottom="42dp"
|
||
|
/>
|
||
|
</RelativeLayout>
|
||
|
|
||
|
<ScrollView
|
||
|
android:id="@+id/login_form"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
>
|
||
|
|
||
|
<LinearLayout
|
||
|
android:id="@+id/email_login_form"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:orientation="vertical"
|
||
|
>
|
||
|
|
||
|
<TextView
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent"
|
||
|
android:text="@string/login_heading"
|
||
|
android:layout_marginBottom="24dp"
|
||
|
/>
|
||
|
|
||
|
<android.support.design.widget.TextInputLayout
|
||
|
android:id="@+id/to_email_input_layout"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_marginBottom="12dp"
|
||
|
>
|
||
|
|
||
|
<EditText
|
||
|
android:id="@+id/email"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:hint="@string/prompt_email"
|
||
|
android:inputType="textEmailAddress"
|
||
|
android:maxLines="1"
|
||
|
android:importantForAutofill="noExcludeDescendants"
|
||
|
/>
|
||
|
|
||
|
</android.support.design.widget.TextInputLayout>
|
||
|
|
||
|
<android.support.design.widget.TextInputLayout
|
||
|
android:id="@+id/to_password_input_layout"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
>
|
||
|
|
||
|
<EditText
|
||
|
android:id="@+id/password"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:hint="@string/prompt_password"
|
||
|
android:inputType="textPassword"
|
||
|
android:maxLines="1"
|
||
|
android:imeActionLabel="@string/action_sign_in"
|
||
|
android:imeOptions="actionDone"
|
||
|
android:fontFamily="sans-serif"
|
||
|
android:importantForAutofill="noExcludeDescendants"
|
||
|
/>
|
||
|
|
||
|
</android.support.design.widget.TextInputLayout>
|
||
|
|
||
|
<android.support.design.widget.TextInputLayout
|
||
|
android:id="@+id/to_symbol_input_layout"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:visibility="gone"
|
||
|
>
|
||
|
|
||
|
<AutoCompleteTextView
|
||
|
android:id="@+id/symbol"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:hint="@string/prompt_symbol"
|
||
|
android:inputType="textAutoComplete"
|
||
|
android:maxLines="1"
|
||
|
android:imeActionLabel="@string/action_sign_in"
|
||
|
android:imeOptions="actionDone"
|
||
|
android:importantForAutofill="noExcludeDescendants"
|
||
|
/>
|
||
|
|
||
|
</android.support.design.widget.TextInputLayout>
|
||
|
|
||
|
<Button
|
||
|
android:id="@+id/action_sign_in"
|
||
|
style="?android:textAppearanceSmall"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_marginTop="16dp"
|
||
|
android:layout_marginBottom="24dp"
|
||
|
android:text="@string/action_sign_in"
|
||
|
android:textStyle="bold"
|
||
|
/>
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/action_create_account"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="@string/action_create_account"
|
||
|
android:layout_marginBottom="24dp"
|
||
|
/>
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/action_forgot_password"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="@string/action_forgot_password"
|
||
|
/>
|
||
|
|
||
|
</LinearLayout>
|
||
|
</ScrollView>
|
||
|
</RelativeLayout>
|