Wrap LoginActivity in ScrollView to account for small screens and landscape mode.

This commit is contained in:
Antoine POPINEAU 2019-11-21 23:41:01 +01:00
parent c36616ab92
commit 9ea5446f58
No known key found for this signature in database
GPG Key ID: A78AC64694F84063
1 changed files with 86 additions and 81 deletions

View File

@ -1,9 +1,12 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <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_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="@color/colorPrimary" android:background="@color/colorPrimary">
<LinearLayout xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center" android:gravity="center"
android:orientation="vertical" android:orientation="vertical"
android:padding="32dp"> android:padding="32dp">
@ -98,4 +101,6 @@
android:backgroundTint="@color/colorAccent" android:backgroundTint="@color/colorAccent"
android:text="@string/login_submit" android:text="@string/login_submit"
android:textColor="@color/whiteWhileLight" /> android:textColor="@color/whiteWhileLight" />
</LinearLayout> </LinearLayout>
</ScrollView>