|
1 | | -<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
2 | | - xmlns:tools="http://schemas.android.com/tools" |
3 | | - android:clipChildren="false" |
4 | | - android:clipToPadding="false" |
5 | | - android:layout_width="match_parent" |
6 | | - android:layout_height="match_parent"> |
| 1 | +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 2 | + xmlns:tools="http://schemas.android.com/tools" |
| 3 | + android:layout_width="match_parent" |
| 4 | + android:layout_height="wrap_content" |
| 5 | + android:clipChildren="false" |
| 6 | + android:clipToPadding="false" |
| 7 | + android:orientation="vertical" |
| 8 | + android:layout_gravity="center"> |
7 | 9 |
|
8 | 10 | <LinearLayout |
| 11 | + android:clipChildren="false" |
| 12 | + android:clipToPadding="false" |
| 13 | + android:orientation="horizontal" |
9 | 14 | android:layout_width="match_parent" |
10 | | - android:layout_height="wrap_content" |
| 15 | + android:layout_height="wrap_content"> |
| 16 | + |
| 17 | + <Space |
| 18 | + android:layout_weight="1" |
| 19 | + android:layout_width="wrap_content" |
| 20 | + android:layout_height="match_parent"/> |
| 21 | + |
| 22 | + <View |
| 23 | + android:id="@+id/circle0" |
| 24 | + android:background="@drawable/circle_green" |
| 25 | + android:layout_width="100dp" |
| 26 | + android:layout_height="100dp" /> |
| 27 | + |
| 28 | + <Space |
| 29 | + android:layout_weight="1" |
| 30 | + android:layout_width="wrap_content" |
| 31 | + android:layout_height="match_parent"/> |
| 32 | + |
| 33 | + <View |
| 34 | + android:id="@+id/circle1" |
| 35 | + android:background="@drawable/circle_blue" |
| 36 | + android:layout_width="100dp" |
| 37 | + android:layout_height="100dp" /> |
| 38 | + |
| 39 | + <Space |
| 40 | + android:layout_weight="1" |
| 41 | + android:layout_width="wrap_content" |
| 42 | + android:layout_height="match_parent"/> |
| 43 | + |
| 44 | + <View |
| 45 | + android:id="@+id/circle2" |
| 46 | + android:background="@drawable/circle_red" |
| 47 | + android:layout_width="100dp" |
| 48 | + android:layout_height="100dp" /> |
| 49 | + |
| 50 | + <Space |
| 51 | + android:layout_weight="1" |
| 52 | + android:layout_width="wrap_content" |
| 53 | + android:layout_height="match_parent"/> |
| 54 | + |
| 55 | + </LinearLayout> |
| 56 | + |
| 57 | + <LinearLayout |
| 58 | + android:orientation="horizontal" |
11 | 59 | android:clipChildren="false" |
12 | 60 | android:clipToPadding="false" |
13 | | - android:orientation="vertical" |
14 | | - android:layout_centerInParent="true"> |
15 | | - |
16 | | - <LinearLayout |
17 | | - android:clipChildren="false" |
18 | | - android:clipToPadding="false" |
19 | | - android:orientation="horizontal" |
20 | | - android:layout_width="match_parent" |
21 | | - android:layout_height="wrap_content"> |
22 | | - |
23 | | - <Space |
24 | | - android:layout_weight="1" |
25 | | - android:layout_width="wrap_content" |
26 | | - android:layout_height="match_parent"/> |
27 | | - |
28 | | - <View |
29 | | - android:id="@+id/circle0" |
30 | | - android:background="@drawable/circle_green" |
31 | | - android:layout_width="100dp" |
32 | | - android:layout_height="100dp" /> |
33 | | - |
34 | | - <Space |
35 | | - android:layout_weight="1" |
36 | | - android:layout_width="wrap_content" |
37 | | - android:layout_height="match_parent"/> |
38 | | - |
39 | | - <View |
40 | | - android:id="@+id/circle1" |
41 | | - android:background="@drawable/circle_blue" |
42 | | - android:layout_width="100dp" |
43 | | - android:layout_height="100dp" /> |
44 | | - |
45 | | - <Space |
46 | | - android:layout_weight="1" |
47 | | - android:layout_width="wrap_content" |
48 | | - android:layout_height="match_parent"/> |
49 | | - |
50 | | - <View |
51 | | - android:id="@+id/circle2" |
52 | | - android:background="@drawable/circle_red" |
53 | | - android:layout_width="100dp" |
54 | | - android:layout_height="100dp" /> |
55 | | - |
56 | | - <Space |
57 | | - android:layout_weight="1" |
58 | | - android:layout_width="wrap_content" |
59 | | - android:layout_height="match_parent"/> |
60 | | - |
61 | | - </LinearLayout> |
62 | | - |
63 | | - <LinearLayout |
64 | | - android:orientation="horizontal" |
65 | | - android:clipChildren="false" |
66 | | - android:clipToPadding="false" |
67 | | - android:layout_marginTop="25dp" |
68 | | - android:layout_width="match_parent" |
69 | | - android:layout_height="wrap_content"> |
70 | | - |
71 | | - <Space |
72 | | - android:layout_weight="1" |
73 | | - android:layout_width="wrap_content" |
74 | | - android:layout_height="match_parent"/> |
75 | | - |
76 | | - <View |
77 | | - android:id="@+id/circle3" |
78 | | - android:background="@drawable/circle_orange" |
79 | | - android:layout_width="100dp" |
80 | | - android:layout_height="100dp" /> |
81 | | - |
82 | | - <Space |
83 | | - android:layout_weight="1" |
84 | | - android:layout_width="wrap_content" |
85 | | - android:layout_height="match_parent"/> |
86 | | - |
87 | | - <View |
88 | | - android:id="@+id/circle4" |
89 | | - android:background="@drawable/circle_purple" |
90 | | - android:layout_width="100dp" |
91 | | - android:layout_height="100dp" /> |
92 | | - |
93 | | - <Space |
94 | | - android:layout_weight="1" |
95 | | - android:layout_width="wrap_content" |
96 | | - android:layout_height="match_parent"/> |
97 | | - |
98 | | - <View |
99 | | - android:id="@+id/circle5" |
100 | | - android:background="@drawable/circle_gray" |
101 | | - android:layout_width="100dp" |
102 | | - android:layout_height="100dp" /> |
103 | | - |
104 | | - <Space |
105 | | - android:layout_weight="1" |
106 | | - android:layout_width="wrap_content" |
107 | | - android:layout_height="match_parent"/> |
108 | | - |
109 | | - </LinearLayout> |
| 61 | + android:layout_marginTop="25dp" |
| 62 | + android:layout_width="match_parent" |
| 63 | + android:layout_height="wrap_content"> |
| 64 | + |
| 65 | + <Space |
| 66 | + android:layout_weight="1" |
| 67 | + android:layout_width="wrap_content" |
| 68 | + android:layout_height="match_parent"/> |
| 69 | + |
| 70 | + <View |
| 71 | + android:id="@+id/circle3" |
| 72 | + android:background="@drawable/circle_orange" |
| 73 | + android:layout_width="100dp" |
| 74 | + android:layout_height="100dp" /> |
| 75 | + |
| 76 | + <Space |
| 77 | + android:layout_weight="1" |
| 78 | + android:layout_width="wrap_content" |
| 79 | + android:layout_height="match_parent"/> |
| 80 | + |
| 81 | + <View |
| 82 | + android:id="@+id/circle4" |
| 83 | + android:background="@drawable/circle_purple" |
| 84 | + android:layout_width="100dp" |
| 85 | + android:layout_height="100dp" /> |
| 86 | + |
| 87 | + <Space |
| 88 | + android:layout_weight="1" |
| 89 | + android:layout_width="wrap_content" |
| 90 | + android:layout_height="match_parent"/> |
| 91 | + |
| 92 | + <View |
| 93 | + android:id="@+id/circle5" |
| 94 | + android:background="@drawable/circle_gray" |
| 95 | + android:layout_width="100dp" |
| 96 | + android:layout_height="100dp" /> |
| 97 | + |
| 98 | + <Space |
| 99 | + android:layout_weight="1" |
| 100 | + android:layout_width="wrap_content" |
| 101 | + android:layout_height="match_parent"/> |
110 | 102 |
|
111 | 103 | </LinearLayout> |
112 | 104 |
|
113 | | -</RelativeLayout> |
| 105 | +</LinearLayout> |
0 commit comments