This repository was archived by the owner on Jun 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 986
Expand file tree
/
Copy pathactivity_main.xml
More file actions
60 lines (49 loc) · 2.14 KB
/
activity_main.xml
File metadata and controls
60 lines (49 loc) · 2.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<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:baselineAligned="false"
android:orientation="horizontal"
tools:context="com.example.android.android_me.ui.MainActivity">
<!--
This layout is a two-pane layout for the master/detail flow.
-->
<!-- The static MasterListFragment -->
<fragment
android:id="@+id/master_list_fragment"
android:name="com.example.android.android_me.ui.MasterListFragment"
android:layout_width="400dp"
android:layout_height="match_parent" />
<!-- A small divider -->
<View
android:layout_width="1dp"
android:layout_height="match_parent"
android:background="@android:color/darker_gray" />
<!-- LinearLayout that arranges all three Android-Me body part images vertically -->
<LinearLayout
android:id="@+id/android_me_linear_layout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:background="@android:color/white"
android:orientation="vertical"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin">
<!-- Three vertically arranged body part fragments - the frame layouts are containers -
one for each Android-Me part (head, body, legs) -->
<FrameLayout
android:id="@+id/head_container"
android:layout_width="match_parent"
android:layout_height="180dp" />
<FrameLayout
android:id="@+id/body_container"
android:layout_width="match_parent"
android:layout_height="180dp" />
<FrameLayout
android:id="@+id/leg_container"
android:layout_width="match_parent"
android:layout_height="180dp" />
</LinearLayout>
</LinearLayout>