Skip to content
This repository was archived by the owner on Jul 25, 2024. It is now read-only.

Commit 1894a03

Browse files
committed
Add ScrollView as parent in login.xml
1 parent 026c4a2 commit 1894a03

File tree

2 files changed

+18
-9
lines changed

2 files changed

+18
-9
lines changed

app/src/main/res/layout-v21/login.xml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2+
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
33
xmlns:tools="http://schemas.android.com/tools"
44
android:layout_width="match_parent"
5-
android:layout_height="match_parent"
6-
android:background="@color/windowBackground"
7-
android:gravity="center_horizontal"
8-
android:orientation="vertical">
5+
android:layout_height="match_parent">
6+
7+
<LinearLayout
8+
android:layout_width="match_parent"
9+
android:layout_height="match_parent"
10+
android:background="@color/windowBackground"
11+
android:gravity="center_horizontal"
12+
android:orientation="vertical">
913

1014
<android.support.design.widget.AppBarLayout
1115
android:layout_width="match_parent"
@@ -164,4 +168,5 @@
164168
android:paddingTop="8dp"
165169
android:text="@string/legal"
166170
android:textColor="#ff0099cc" />
167-
</LinearLayout>
171+
</LinearLayout>
172+
</ScrollView>

app/src/main/res/layout/login.xml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2+
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:layout_width="match_parent"
4+
android:layout_height="match_parent">
5+
<LinearLayout
36
android:layout_width="match_parent"
47
android:layout_height="match_parent"
58
android:gravity="center_horizontal"
69
android:orientation="vertical">
7-
810
<include
911
android:id="@+id/toolbar"
1012
layout="@layout/toolbar" />
@@ -24,6 +26,7 @@
2426
android:textAppearance="?android:attr/textAppearanceLarge" />
2527

2628

29+
2730
<LinearLayout
2831
android:id="@+id/serverInput"
2932
android:layout_width="match_parent"
@@ -156,6 +159,7 @@
156159
android:paddingTop="8dp"
157160
android:text="@string/legal"
158161
android:textColor="#ff0099cc" />
159-
</LinearLayout>
162+
</LinearLayout>
163+
</ScrollView>
160164

161165

0 commit comments

Comments
 (0)