Mercury-IM/app/src/main/res/layout/activity_login.xml

78 lines
3.1 KiB
XML
Raw Normal View History

2019-04-14 18:12:04 +02:00
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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:gravity="center_horizontal"
android:orientation="vertical"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingBottom="@dimen/activity_vertical_margin"
2019-05-04 00:27:02 +02:00
tools:context=".ui.login.LoginActivity">
2019-04-14 18:12:04 +02:00
<!-- Login progress -->
<ProgressBar
android:id="@+id/login_progress"
style="?android:attr/progressBarStyleLarge"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:visibility="gone" />
<ScrollView
android:id="@+id/login_form"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:id="@+id/jid_login_form"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
2019-05-18 10:06:16 +02:00
<com.google.android.material.textfield.TextInputLayout
2019-04-14 18:12:04 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content">
<AutoCompleteTextView
android:id="@+id/jid"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/prompt_jid"
android:inputType="textEmailAddress"
android:maxLines="1"
android:singleLine="true" />
2019-05-18 10:06:16 +02:00
</com.google.android.material.textfield.TextInputLayout>
2019-04-14 18:12:04 +02:00
2019-05-18 10:06:16 +02:00
<com.google.android.material.textfield.TextInputLayout
2019-04-14 18:12:04 +02:00
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:imeActionId="6"
android:imeActionLabel="@string/action_sign_in_short"
android:imeOptions="actionUnspecified"
android:inputType="textPassword"
android:maxLines="1"
android:singleLine="true" />
2019-05-18 10:06:16 +02:00
</com.google.android.material.textfield.TextInputLayout>
2019-04-14 18:12:04 +02:00
<Button
android:id="@+id/sign_in_button"
style="?android:textAppearanceSmall"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="@string/action_sign_in"
android:textStyle="bold" />
</LinearLayout>
</ScrollView>
</LinearLayout>