Skip to content

Commit 9c471a8

Browse files
committed
Changed RelativeLayout to scroll view for the user details activity. Time to merge the changes
1 parent 8523f2d commit 9c471a8

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

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

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<RelativeLayout 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"
55
android:layout_height="match_parent"
@@ -9,23 +9,23 @@
99
android:paddingTop="@dimen/activity_vertical_margin"
1010
tools:context="com.example.werfish.praticeapp.DisplayUser">
1111

12-
<TextView
13-
android:layout_width="wrap_content"
14-
android:layout_height="wrap_content"
15-
android:id="@+id/Title"
16-
android:textSize="30dp"
17-
android:text="User Details"
18-
android:layout_alignParentTop="true"
19-
android:layout_centerHorizontal="true" />
20-
2112
<LinearLayout
2213
android:orientation="vertical"
2314
android:layout_width="match_parent"
2415
android:layout_height="wrap_content"
25-
android:layout_below="@+id/Title"
2616
android:layout_alignParentStart="true"
2717
android:id="@+id/linearLayout">
2818

19+
<TextView
20+
android:layout_width="wrap_content"
21+
android:layout_height="wrap_content"
22+
android:id="@+id/Title"
23+
android:textSize="30dp"
24+
android:text="User Details"
25+
android:layout_alignParentTop="true"
26+
android:layout_centerHorizontal="true"
27+
android:layout_gravity="center_horizontal" />
28+
2929
<LinearLayout
3030
android:orientation="horizontal"
3131
android:layout_width="match_parent"
@@ -217,4 +217,4 @@
217217

218218
</LinearLayout>
219219

220-
</RelativeLayout>
220+
</ScrollView>

0 commit comments

Comments
 (0)