mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
100 lines
3.5 KiB
XML
100 lines
3.5 KiB
XML
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_margin="16dp"
|
|
android:gravity="center"
|
|
android:orientation="vertical"
|
|
>
|
|
|
|
<TextView
|
|
android:id="@+id/loginSubtitle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="48dp"
|
|
android:drawablePadding="8dp"
|
|
android:drawableTop="@drawable/commons_logo_large"
|
|
android:gravity="center_horizontal"
|
|
android:text="@string/app_name"
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
|
/>
|
|
|
|
<android.support.design.widget.TextInputLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
>
|
|
|
|
<android.support.design.widget.TextInputEditText
|
|
android:id="@+id/loginUsername"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:hint="@string/username"
|
|
android:imeOptions="flagNoExtractUi"
|
|
android:inputType="textNoSuggestions"
|
|
>
|
|
|
|
<requestFocus/>
|
|
|
|
</android.support.design.widget.TextInputEditText>
|
|
|
|
</android.support.design.widget.TextInputLayout>
|
|
|
|
<android.support.design.widget.TextInputLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:passwordToggleEnabled="false"
|
|
>
|
|
|
|
<android.support.design.widget.TextInputEditText
|
|
android:id="@+id/loginPassword"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:hint="@string/password"
|
|
android:imeOptions="flagNoExtractUi"
|
|
android:inputType="textPassword"
|
|
/>
|
|
|
|
</android.support.design.widget.TextInputLayout>
|
|
|
|
<android.support.design.widget.TextInputLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:passwordToggleEnabled="false"
|
|
>
|
|
|
|
<android.support.design.widget.TextInputEditText
|
|
android:id="@+id/loginTwoFactor"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:hint="@string/_2fa_code"
|
|
android:imeOptions="flagNoExtractUi"
|
|
android:inputType="textNoSuggestions"
|
|
android:visibility="gone"
|
|
/>
|
|
|
|
</android.support.design.widget.TextInputLayout>
|
|
|
|
<Button
|
|
android:id="@+id/loginButton"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:enabled="false"
|
|
android:text="@string/login"
|
|
/>
|
|
|
|
<Button
|
|
android:id="@+id/signupButton"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_horizontal"
|
|
android:text="@string/signup"
|
|
/>
|
|
|
|
</LinearLayout>
|
|
</ScrollView>
|