1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
- <android .support.design.widget.CoordinatorLayout
3
- xmlns : android =" http://schemas.android.com/apk/res/android"
2
+ <android .support.design.widget.CoordinatorLayout xmlns : android =" http://schemas.android.com/apk/res/android"
4
3
xmlns : app =" http://schemas.android.com/apk/res-auto"
5
4
android : layout_width =" match_parent"
6
5
android : layout_height =" match_parent"
12
11
android : layout_height =" wrap_content"
13
12
android : background =" @color/white"
14
13
android : orientation =" vertical"
14
+
15
15
android : theme =" @style/ThemeOverlay.AppCompat.Light"
16
16
app : elevation =" 0dp" >
17
17
18
18
19
19
<android .support.design.widget.CollapsingToolbarLayout
20
20
android : id =" @+id/toolbar_layout"
21
21
android : layout_width =" match_parent"
22
+ app : contentScrim =" @color/white"
22
23
android : layout_height =" wrap_content"
23
- app : layout_scrollFlags =" scroll|enterAlwaysCollapsed|exitUntilCollapsed"
24
- app : statusBarScrim =" ?colorPrimaryDark " >
24
+ app : layout_scrollFlags =" scroll|enterAlwaysCollapsed|exitUntilCollapsed|snap "
25
+ app : statusBarScrim =" @color/colorAccent " >
25
26
26
27
<!-- 底图-->
27
28
<RelativeLayout
34
35
<!-- 默认大图-->
35
36
<ImageView
36
37
android : layout_width =" match_parent"
37
- android : layout_height =" 240dp "
38
+ android : layout_height =" 360dp "
38
39
android : background =" @drawable/bg_blogger_blur"
39
- android : minHeight =" 240dp "
40
- android : scaleType =" center" />
40
+ android : minHeight =" 360dp "
41
+ android : scaleType =" center" />
41
42
42
43
<!-- 贴图大图-->
43
44
<ImageView
44
45
android : id =" @+id/img_background"
45
46
android : layout_width =" match_parent"
46
- android : layout_height =" 240dp "
47
- android : minHeight =" 240dp "
48
- android : scaleType =" center" />
47
+ android : layout_height =" 360dp "
48
+ android : minHeight =" 360dp "
49
+ android : scaleType =" center" />
49
50
50
51
<LinearLayout
51
52
android : layout_width =" match_parent"
52
53
android : layout_height =" wrap_content"
53
- android : layout_marginTop =" 160dp "
54
+ android : layout_marginTop =" 240dp "
54
55
android : background =" @drawable/bg_blogger_blur_new"
55
56
android : orientation =" vertical" >
56
57
60
61
android : id =" @+id/ll_blog_avatar"
61
62
android : layout_width =" wrap_content"
62
63
android : layout_height =" wrap_content"
63
- android : layout_marginLeft =" 16dp"
64
64
android : layout_marginStart =" 16dp"
65
+ android : layout_marginLeft =" 16dp"
65
66
android : paddingTop =" 20dp" >
66
67
67
68
<com .makeramen.roundedimageview.RoundedImageView
68
69
android : layout_width =" 62dp"
69
70
android : layout_height =" 62dp"
70
71
android : src =" @color/white"
71
- app : riv_corner_radius =" 74dp" />
72
+ app : riv_corner_radius =" 74dp" />
72
73
73
74
<com .makeramen.roundedimageview.RoundedImageView
74
75
android : id =" @+id/img_blog_avatar"
75
76
android : layout_width =" 60dp"
76
77
android : layout_height =" 60dp"
77
78
android : scaleType =" centerCrop"
78
79
android : src =" @drawable/boy"
79
- app : riv_corner_radius =" 70dp" />
80
+ app : riv_corner_radius =" 70dp" />
80
81
81
82
<TextView
82
83
android : id =" @+id/tv_blogger_name"
87
88
android : paddingStart =" 12dp"
88
89
android : textColor =" @android:color/black"
89
90
android : textSize =" @dimen/h1"
90
- android : textStyle =" bold" />
91
+ android : textStyle =" bold" />
91
92
92
93
93
94
<LinearLayout
109
110
android : indeterminateDuration =" 3000"
110
111
android : indeterminateTint =" @android:color/white"
111
112
android : indeterminateTintMode =" src_in"
112
- android : visibility =" gone" />
113
+ android : visibility =" gone" />
113
114
114
115
<Button
115
116
android : id =" @+id/btn_blogger_follow"
116
- android : layout_width =" 62dp "
117
- android : layout_height =" 26dp "
117
+ android : layout_width =" 72dp "
118
+ android : layout_height =" 28dp "
118
119
android : background =" @drawable/bg_btn_follow_blogger"
119
120
android : text =" @string/following"
120
- android : textColor =" @android: color/black "
121
+ android : textColor =" @color/white "
121
122
android : textSize =" @dimen/h3"
122
123
android : textStyle =" bold"
123
- android : visibility =" visible" />
124
+ android : visibility =" visible" />
124
125
</LinearLayout >
125
126
126
127
<TextView
130
131
android : layout_below =" @id/tv_blogger_name"
131
132
android : layout_marginStart =" 18dp"
132
133
android : layout_marginTop =" 12dp"
133
- android : layout_toEndOf =" @id/img_blog_avatar"
134
134
android : layout_toStartOf =" @id/rl_blogger_follow"
135
+ android : layout_toEndOf =" @id/img_blog_avatar"
135
136
android : paddingStart =" 12dp"
136
137
android : text =" @string/blogger_default_introduce"
137
138
android : textColor =" #FF9B9B9B"
138
- android : textSize =" @dimen/h2" />
139
+ android : textSize =" @dimen/h2" />
139
140
140
141
141
142
</RelativeLayout >
145
146
<LinearLayout
146
147
android : layout_width =" match_parent"
147
148
android : layout_height =" wrap_content"
148
- android : layout_marginBottom =" 40dp"
149
149
android : layout_marginLeft =" 18dp"
150
150
android : layout_marginTop =" 20dp"
151
+ android : layout_marginBottom =" 40dp"
151
152
android : gravity =" start|center_vertical"
152
- android : paddingBottom =" 6dp"
153
- android : paddingTop =" 6dp" >
153
+ android : paddingTop =" 6dp"
154
+ android : paddingBottom =" 6dp" >
154
155
155
156
<LinearLayout
156
157
android : id =" @+id/layout_account_fans"
172
173
android : text =" 0"
173
174
android : textColor =" @android:color/black"
174
175
android : textSize =" @dimen/h2"
175
- android : textStyle =" bold" />
176
+ android : textStyle =" bold" />
176
177
177
178
<TextView
178
179
android : layout_width =" wrap_content"
179
180
android : layout_height =" wrap_content"
180
181
android : layout_marginTop =" 4dp"
181
182
android : text =" 粉丝"
182
183
android : textColor =" @android:color/black"
183
- android : textSize =" @dimen/h3" />
184
+ android : textSize =" @dimen/h3" />
184
185
185
186
186
187
</LinearLayout >
205
206
android : text =" 0"
206
207
android : textColor =" @android:color/black"
207
208
android : textSize =" @dimen/h2"
208
- android : textStyle =" bold" />
209
+ android : textStyle =" bold" />
209
210
210
211
<TextView
211
212
android : layout_width =" wrap_content"
212
213
android : layout_height =" wrap_content"
213
214
android : layout_marginTop =" 4dp"
214
215
android : text =" 关注"
215
216
android : textColor =" @android:color/black"
216
- android : textSize =" @dimen/h3" />
217
+ android : textSize =" @dimen/h3" />
217
218
218
219
</LinearLayout >
219
220
238
239
android : text =" 0"
239
240
android : textColor =" @android:color/black"
240
241
android : textSize =" @dimen/h2"
241
- android : textStyle =" bold" />
242
+ android : textStyle =" bold" />
242
243
243
244
<TextView
244
245
android : layout_width =" wrap_content"
245
246
android : layout_height =" wrap_content"
246
247
android : layout_marginTop =" 4dp"
247
248
android : text =" 园龄"
248
249
android : textColor =" @android:color/black"
249
- android : textSize =" @dimen/h3" />
250
+ android : textSize =" @dimen/h3" />
250
251
251
252
</LinearLayout >
252
253
275
276
android : layout_height =" wrap_content"
276
277
android : layout_marginEnd =" 48dp"
277
278
android : gravity =" center"
278
- android : textColor =" @color/white "
279
+ android : textColor =" @color/ph1 "
279
280
android : textSize =" @dimen/h1"
280
- android : visibility =" gone" />
281
+ android : visibility =" gone" />
281
282
</android .support.v7.widget.Toolbar>
282
283
283
284
307
308
<android .support.design.widget.TabItem
308
309
android : layout_width =" wrap_content"
309
310
android : layout_height =" wrap_content"
310
- android : text =" 动态" />
311
+ android : text =" 动态" />
311
312
312
313
<android .support.design.widget.TabItem
313
314
android : layout_width =" wrap_content"
314
315
android : layout_height =" wrap_content"
315
- android : text =" 博客" />
316
+ android : text =" 博客" />
316
317
317
318
</com .rae.cnblogs.widget.RaeSkinDesignTabLayout>
318
319
323
324
android : layout_width =" match_parent"
324
325
android : layout_height =" wrap_content"
325
326
android : background =" @color/white"
326
- app : layout_behavior =" @string/appbar_scrolling_view_behavior" />
327
+ app : layout_behavior =" @string/appbar_scrolling_view_behavior" />
327
328
328
329
</android .support.design.widget.CoordinatorLayout>
0 commit comments