33 xmlns : app =" http://schemas.android.com/apk/res-auto"
44 android : layout_width =" match_parent"
55 android : layout_height =" match_parent"
6- android : background =" @color/white" >
6+ android : background =" @color/white"
7+ android : fitsSystemWindows =" true" >
78
89 <android .support.design.widget.AppBarLayout
910 android : layout_width =" match_parent"
2526 android : layout_height =" 260dp"
2627 android : scaleType =" centerCrop"
2728 android : src =" @drawable/bg_blogger_blur"
29+ app : layout_collapseMode =" parallax"
30+ app : layout_collapseParallaxMultiplier =" 0.7"
2831 app : layout_constraintEnd_toEndOf =" parent"
2932 app : layout_constraintStart_toStartOf =" parent"
3033 app : layout_constraintTop_toTopOf =" parent" />
3134
32-
3335 <!-- 黑色遮罩层-->
3436 <ImageView
3537 android : layout_width =" match_parent"
3638 android : layout_height =" match_parent"
37- android : background =" #3C000000" />
38-
39+ android : background =" #3C000000"
40+ app : layout_collapseMode =" parallax"
41+ app : layout_collapseParallaxMultiplier =" 0.7" />
3942
4043 <!-- 返回-->
4144 <android .support.v7.widget.Toolbar
4245 android : id =" @+id/tool_bar"
4346 android : layout_width =" match_parent"
4447 android : layout_height =" wrap_content"
45- android : fitsSystemWindows =" true"
4648 android : gravity =" center"
4749 app : layout_collapseMode =" pin"
50+ app : layout_collapseParallaxMultiplier =" 1"
4851 app : navigationIcon =" @drawable/icon_back_white" >
4952
5053 <!-- 分享-->
5659
5760 </android .support.v7.widget.Toolbar>
5861
59-
6062 <!-- 标题-->
6163 <LinearLayout
6264 android : layout_width =" match_parent"
6365 android : layout_height =" wrap_content"
6466 android : layout_gravity =" bottom"
65- android : orientation =" vertical" >
67+ android : orientation =" vertical"
68+ app : layout_collapseMode =" parallax"
69+ app : layout_collapseParallaxMultiplier =" 0.7" >
6670
6771 <TextView
6872 android : id =" @+id/tv_title"
8488 android : textColor =" #FFFFFFFF"
8589 android : textSize =" 14sp" />
8690 </LinearLayout >
87- </android .support.design.widget.CollapsingToolbarLayout>
88-
8991
90- <LinearLayout
91- android : layout_width =" match_parent"
92- android : layout_height =" wrap_content"
93- android : gravity =" center"
94- android : paddingTop =" 14dp"
95- android : paddingBottom =" 14dp" >
9692
97- <RelativeLayout
98- android : layout_width =" 0dp"
93+ <!---->
94+ <LinearLayout
95+ android : layout_width =" match_parent"
9996 android : layout_height =" wrap_content"
100- android : layout_weight =" 1"
101- android : gravity =" center" >
102-
103- <TextView
104- android : id =" @+id/tv_article_num"
105- android : layout_width =" wrap_content"
106- android : layout_height =" wrap_content"
107- android : text =" 10"
108- android : textColor =" @color/black"
109- android : textSize =" 18sp" />
97+ android : gravity =" center"
98+ android : paddingTop =" 14dp"
99+ android : paddingBottom =" 14dp" >
110100
111- <TextView
112- android : id =" @+id/textView"
113- android : layout_width =" wrap_content"
101+ <RelativeLayout
102+ android : layout_width =" 0dp"
114103 android : layout_height =" wrap_content"
115- android : layout_alignBaseline =" @+id/tv_article_num"
116- android : layout_marginStart =" 5dp"
117- android : layout_toEndOf =" @+id/tv_article_num"
118- android : text =" 讲"
119- android : textColor =" @color/black"
120- android : textSize =" 12sp" />
121-
122- <TextView
123- android : id =" @+id/textView2"
124- android : layout_width =" wrap_content"
104+ android : layout_weight =" 1"
105+ android : gravity =" center" >
106+
107+ <TextView
108+ android : id =" @+id/tv_article_num"
109+ android : layout_width =" wrap_content"
110+ android : layout_height =" wrap_content"
111+ android : text =" 10"
112+ android : textColor =" @color/black"
113+ android : textSize =" 18sp" />
114+
115+ <TextView
116+ android : id =" @+id/textView"
117+ android : layout_width =" wrap_content"
118+ android : layout_height =" wrap_content"
119+ android : layout_alignBaseline =" @+id/tv_article_num"
120+ android : layout_marginStart =" 5dp"
121+ android : layout_toEndOf =" @+id/tv_article_num"
122+ android : text =" 讲"
123+ android : textColor =" @color/black"
124+ android : textSize =" 12sp" />
125+
126+ <TextView
127+ android : id =" @+id/textView2"
128+ android : layout_width =" wrap_content"
129+ android : layout_height =" wrap_content"
130+ android : layout_below =" @+id/tv_article_num"
131+ android : text =" 总讲数"
132+ android : textColor =" #FF9B9B9B"
133+ android : textSize =" 12sp" />
134+ </RelativeLayout >
135+
136+ <View
137+ android : layout_width =" 1dp"
138+ android : layout_height =" match_parent"
139+ android : background =" #FFF0F0F0" />
140+
141+ <RelativeLayout
142+ android : layout_width =" 0dp"
125143 android : layout_height =" wrap_content"
126- android : layout_below =" @+id/tv_article_num"
127- android : text =" 总讲数"
128- android : textColor =" #FF9B9B9B"
129- android : textSize =" 12sp" />
130- </RelativeLayout >
131-
132- <View
133- android : layout_width =" 1dp"
134- android : layout_height =" match_parent"
135- android : background =" #FFF0F0F0" />
144+ android : layout_weight =" 1"
145+ android : gravity =" center" >
146+
147+ <TextView
148+ android : id =" @+id/tv_sub_num"
149+ android : layout_width =" wrap_content"
150+ android : layout_height =" wrap_content"
151+ android : text =" 10"
152+ android : textColor =" @color/black"
153+ android : textSize =" 18sp" />
154+
155+ <TextView
156+ android : layout_width =" wrap_content"
157+ android : layout_height =" wrap_content"
158+ android : layout_alignBaseline =" @+id/tv_sub_num"
159+ android : layout_marginStart =" 5dp"
160+ android : layout_toEndOf =" @+id/tv_sub_num"
161+ android : text =" 人"
162+ android : textColor =" @color/black"
163+ android : textSize =" 12sp" />
164+
165+ <TextView
166+ android : layout_width =" wrap_content"
167+ android : layout_height =" wrap_content"
168+ android : layout_below =" @+id/tv_sub_num"
169+ android : text =" 订阅数"
170+ android : textColor =" #FF9B9B9B"
171+ android : textSize =" 12sp" />
172+ </RelativeLayout >
173+ </LinearLayout >
136174
137- <RelativeLayout
138- android : layout_width =" 0dp"
139- android : layout_height =" wrap_content"
140- android : layout_weight =" 1"
141- android : gravity =" center" >
175+ </android .support.design.widget.CollapsingToolbarLayout>
142176
143- <TextView
144- android : id =" @+id/tv_sub_num"
145- android : layout_width =" wrap_content"
146- android : layout_height =" wrap_content"
147- android : text =" 10"
148- android : textColor =" @color/black"
149- android : textSize =" 18sp" />
150177
151- <TextView
152- android : layout_width =" wrap_content"
153- android : layout_height =" wrap_content"
154- android : layout_alignBaseline =" @+id/tv_sub_num"
155- android : layout_marginStart =" 5dp"
156- android : layout_toEndOf =" @+id/tv_sub_num"
157- android : text =" 人"
158- android : textColor =" @color/black"
159- android : textSize =" 12sp" />
178+ </android .support.design.widget.AppBarLayout>
160179
161- <TextView
162- android : layout_width =" wrap_content"
163- android : layout_height =" wrap_content"
164- android : layout_below =" @+id/tv_sub_num"
165- android : text =" 订阅数"
166- android : textColor =" #FF9B9B9B"
167- android : textSize =" 12sp" />
168- </RelativeLayout >
169- </LinearLayout >
180+ <!-- <android.support.v7.widget.RecyclerView-->
181+ <!-- android:layout_width="match_parent"-->
182+ <!-- android:layout_height="wrap_content"-->
183+ <!-- android:background="@color/dividerColor"-->
184+ <!-- app:layout_behavior="@string/appbar_scrolling_view_behavior" />-->
170185
171- </android .support.design.widget.AppBarLayout>
172186
173- <ImageView
187+ <LinearLayout
174188 android : layout_width =" match_parent"
175189 android : layout_height =" wrap_content"
176- android : src =" @color/dividerPrimary"
177- app : layout_behavior =" @string/appbar_scrolling_view_behavior" />
190+ android : layout_gravity =" bottom"
191+ android : background =" @drawable/public_top_divider_while_primary"
192+ android : gravity =" center"
193+ android : paddingStart =" 48dp"
194+ android : paddingTop =" 12dp"
195+ android : paddingEnd =" 48dp"
196+ android : paddingBottom =" 12dp" >
197+
198+ <Button
199+ android : id =" @+id/btn_send"
200+ android : layout_width =" match_parent"
201+ android : layout_height =" wrap_content"
202+ android : background =" @drawable/bg_ant_button_default"
203+ android : text =" @string/subscribe_now"
204+ android : textColor =" @color/text_color_ant_button_default"
205+ android : textSize =" 16sp"
206+ app : layout_constraintLeft_toLeftOf =" parent"
207+ app : layout_constraintTop_toBottomOf =" @+id/et_phone" />
208+
209+
210+ </LinearLayout >
178211
179212</android .support.design.widget.CoordinatorLayout>
0 commit comments