96 lines
4.1 KiB
XML
96 lines
4.1 KiB
XML
<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">
|
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
android:id="@+id/appbar_login"
|
|
android:layout_height="wrap_content"
|
|
android:layout_width="match_parent"
|
|
android:orientation="vertical">
|
|
|
|
<androidx.appcompat.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:id="@+id/tool_bar_login"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:elevation="4dp" />
|
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
|
<LinearLayout
|
|
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"
|
|
tools:context="net.schueller.peertube.activity.LoginActivity">
|
|
|
|
|
|
<ScrollView
|
|
android:id="@+id/login_form"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
<LinearLayout
|
|
android:id="@+id/email_login_form"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:textSize="16sp"
|
|
android:text="Alpha! Login is still in heavy development and may not work correctly! You must have an account on the instance you are connecting to. Registration is currently not supported" />
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<AutoCompleteTextView
|
|
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:singleLine="true" />
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
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" />
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<Button
|
|
android:id="@+id/email_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>
|
|
</LinearLayout> |