Project

Profile

Help

HostedRedmine.com has moved to the Planio platform. All logins and passwords remained the same. All users will be able to login and use Redmine just as before. Read more...

Task #613324 » growth.xml

杨 高, 2016-11-23 01:56 AM

 
1
<?xml version="1.0" encoding="utf-8"?>
2
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
    xmlns:tools="http://schemas.android.com/tools"
4
    android:layout_width="match_parent"
5
    android:layout_height="match_parent"
6
    tools:context="com.example.administrator.quanzi.MainActivity">
7

    
8
    <!--标题-->
9
    <TextView
10
        android:id="@+id/growth_title"
11
        android:layout_width="match_parent"
12
        android:layout_height="@dimen/growth_lenth"
13
        android:text="成长记录"
14
        android:textColor="#ffffff"
15
        android:textSize="@dimen/growth_title"
16
        android:gravity="center"
17
        android:background="#79cd65"/>
18
    <!--头像和姓名-->
19
    <LinearLayout
20
        android:id="@+id/growth_head_name"
21
        android:layout_width="match_parent"
22
        android:layout_height="wrap_content"
23
        android:orientation="horizontal"
24
        android:layout_below="@+id/growth_title"
25
        android:paddingLeft="20dp">
26
        <de.hdodenhof.circleimageview.CircleImageView
27
            android:id="@+id/growth_head"
28
            android:layout_width="@dimen/growth_head"
29
            android:layout_height="@dimen/growth_head"
30
            android:src="@drawable/head_sculpture" />
31
        <TextView
32
            android:id="@+id/growth_name"
33
            android:layout_width="wrap_content"
34
            android:layout_height="wrap_content"
35
            android:text="宝宝"
36
            android:textSize="@dimen/growth_title"
37
            android:textColor="#646161"
38
            android:layout_margin="@dimen/growth_title"/>
39
    </LinearLayout>
40
    <!--时间轴-->
41
    <LinearLayout
42
        android:id="@+id/growth_time_things"
43
        android:layout_width="match_parent"
44
        android:layout_height="wrap_content"
45
        android:orientation="horizontal"
46
        android:layout_below="@+id/growth_head_name">
47
        <TextView
48
            android:id="@+id/growth_time_year"
49
            android:layout_width="wrap_content"
50
            android:layout_height="wrap_content"
51
            android:layout_weight="1"
52
            android:text=""
53
            android:background="#79cd65"
54
            android:textColor="#ffffff"
55
            android:textSize="@dimen/growth_time_things"
56
            android:gravity="center"
57
            android:padding="3dp"/>
58
        <TextView
59
            android:layout_width="2dp"
60
            android:layout_height="wrap_content" />
61
        <TextView
62
            android:id="@+id/growth_time_month"
63
            android:layout_width="wrap_content"
64
            android:layout_height="wrap_content"
65
            android:layout_weight="1"
66
            android:text=""
67
            android:background="#79cd65"
68
            android:textColor="#ffffff"
69
            android:textSize="@dimen/growth_time_things"
70
            android:gravity="center"
71
            android:padding="3dp"/>
72
        <TextView
73
            android:layout_width="2dp"
74
            android:layout_height="wrap_content" />
75
        <TextView
76
            android:id="@+id/growth_time_day"
77
            android:layout_width="wrap_content"
78
            android:layout_height="wrap_content"
79
            android:layout_weight="1"
80
            android:text=""
81
            android:background="#79cd65"
82
            android:textColor="#ffffff"
83
            android:textSize="@dimen/growth_time_things"
84
            android:gravity="center"
85
            android:padding="3dp"/>
86
    </LinearLayout>
87
    <!--内容_出生-->
88
    <LinearLayout
89
        android:id="@+id/growth_bron"
90
        android:layout_width="match_parent"
91
        android:layout_height="wrap_content"
92
        android:orientation="horizontal"
93
        android:layout_below="@+id/growth_time_things">
94
        <LinearLayout
95
            android:id="@+id/groeth_bron_left"
96
            android:layout_width="wrap_content"
97
            android:layout_height="wrap_content"
98
            android:orientation="vertical"
99
            android:padding="20dp">
100
            <TextView
101
                android:id="@+id/growth_bron_left_time"
102
                android:layout_width="wrap_content"
103
                android:layout_height="wrap_content"
104
                android:text="14.08.18"
105
                android:textSize="@dimen/growth_time_things"
106
                android:padding="@dimen/growth_padding"
107
                android:textColor="#494646" />
108
            <TextView
109
                android:id="@+id/growth_bron_left_text"
110
                android:layout_width="wrap_content"
111
                android:layout_height="wrap_content"
112
                android:text="周一"
113
                android:textSize="@dimen/growth_time_things"
114
                android:padding="@dimen/growth_padding"/>
115
        </LinearLayout>
116
        <LinearLayout
117
            android:id="@+id/groeth_bron_right"
118
            android:layout_width="wrap_content"
119
            android:layout_height="wrap_content"
120
            android:orientation="vertical"
121
            android:paddingTop="20dp">
122

    
123
            <TextView
124
                android:id="@+id/growth_bron_right_time"
125
                android:layout_width="wrap_content"
126
                android:layout_height="wrap_content"
127
                android:text="出生"
128
                android:textSize="@dimen/growth_time_things"
129
                android:padding="@dimen/growth_padding"
130
                android:textColor="#2b5ae5" />
131
            <TextView
132
                android:id="@+id/growth_bron_right_text"
133
                android:layout_width="wrap_content"
134
                android:layout_height="wrap_content"
135
                android:text="宝宝今天出生,顺产8斤2两,非常可爱的小胖妞,爸爸妈妈一定好好记录你的成长"
136
                android:textSize="@dimen/growth_time_things"
137
                android:padding="@dimen/growth_padding"
138
                android:textColor="#494646" />
139
        </LinearLayout>
140
    </LinearLayout>
141
    <!--内容_百天-->
142
    <LinearLayout
143
        android:id="@+id/growth_hundred"
144
        android:layout_width="match_parent"
145
        android:layout_height="wrap_content"
146
        android:orientation="vertical"
147
        android:layout_below="@+id/growth_bron">
148
        <LinearLayout
149
            android:id="@+id/growth_hundred_horizontol"
150
            android:layout_width="match_parent"
151
            android:layout_height="wrap_content"
152
            android:orientation="horizontal"
153
            android:layout_below="@+id/growth_time_things">
154
            <LinearLayout
155
                android:id="@+id/groeth_hundred_left"
156
                android:layout_width="wrap_content"
157
                android:layout_height="wrap_content"
158
                android:orientation="vertical"
159
                android:padding="20dp">
160
                <TextView
161
                    android:id="@+id/growth_hundred_left_time"
162
                    android:layout_width="wrap_content"
163
                    android:layout_height="wrap_content"
164
                    android:text="14.11.25"
165
                    android:textSize="@dimen/growth_time_things"
166
                    android:padding="@dimen/growth_padding"
167
                    android:textColor="#494646" />
168
                <TextView
169
                    android:id="@+id/growth_hundred_left_text"
170
                    android:layout_width="wrap_content"
171
                    android:layout_height="wrap_content"
172
                    android:text="周三"
173
                    android:textSize="@dimen/growth_time_things"
174
                    android:padding="@dimen/growth_padding"/>
175
            </LinearLayout>
176
            <LinearLayout
177
                android:id="@+id/groeth_hundred_right"
178
                android:layout_width="wrap_content"
179
                android:layout_height="wrap_content"
180
                android:orientation="vertical"
181
                android:paddingTop="20dp">
182

    
183
                <TextView
184
                    android:id="@+id/growth_hundred_right_time"
185
                    android:layout_width="wrap_content"
186
                    android:layout_height="wrap_content"
187
                    android:text="3月+8天"
188
                    android:textSize="@dimen/growth_time_things"
189
                    android:padding="@dimen/growth_padding"
190
                    android:textColor="#2b5ae5" />
191
                <TextView
192
                    android:id="@+id/growth_hundred_right_text"
193
                    android:layout_width="wrap_content"
194
                    android:layout_height="wrap_content"
195
                    android:text="宝宝今天100天了,爸爸妈妈带宝宝去拍了百天照。"
196
                    android:textSize="@dimen/growth_time_things"
197
                    android:padding="@dimen/growth_padding"
198
                    android:textColor="#494646" />
199
            </LinearLayout>
200
        </LinearLayout>
201
        <LinearLayout
202
            android:id="@+id/growth_hundred_center"
203
            android:layout_width="match_parent"
204
            android:layout_height="wrap_content"
205
            android:orientation="vertical">
206
            <TextView
207
                android:id="@+id/growth_hundred_center_text1"
208
                android:layout_width="wrap_content"
209
                android:layout_height="wrap_content"
210
                android:layout_marginLeft="112dp"
211
                android:text="疫苗:卡介苗/乙肝疫苗"
212
                android:textSize="15dp"
213
                android:textColor="#f61de4"
214
                android:padding="2dp"/>
215
            <TextView
216
                android:id="@+id/growth_hundred_center_text2"
217
                android:layout_width="wrap_content"
218
                android:layout_height="wrap_content"
219
                android:layout_marginLeft="112dp"
220
                android:text="身高:50厘米"
221
                android:textSize="15dp"
222
                android:textColor="#33f663"
223
                android:padding="2dp"/>
224
            <TextView
225
                android:id="@+id/growth_hundred_center_text3"
226
                android:layout_width="wrap_content"
227
                android:layout_height="wrap_content"
228
                android:layout_marginLeft="112dp"
229
                android:text="体重:14斤"
230
                android:textSize="15dp"
231
                android:textColor="#33f663"
232
                android:padding="2dp"/>
233
        </LinearLayout>
234
        <LinearLayout
235
            android:id="@+id/growth_hundred_vertical"
236
            android:layout_width="match_parent"
237
            android:layout_height="wrap_content"
238
            android:orientation="horizontal"
239
            android:paddingLeft="115dp">
240
            <ImageView
241
                android:id="@+id/growth_hundred_firstimg"
242
                android:layout_width="@dimen/growth_head"
243
                android:layout_height="@dimen/growth_head"
244
                android:src="@drawable/hundred_first"/>
245
            <ImageView
246
                android:id="@+id/growth_hundred_secondimg"
247
                android:layout_width="@dimen/growth_head"
248
                android:layout_height="@dimen/growth_head"
249
                android:src="@drawable/hundred_second"/>
250
        </LinearLayout>
251
    </LinearLayout>
252

    
253
</RelativeLayout>
    (1-1/1)