dynamic_activity_members.xml 16.5 KB
Newer Older
konghaorui committed
1 2
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
konghaorui committed
3 4
        xmlns:myapp="http://schemas.android.com/apk/res-auto"
        xmlns:tools="http://schemas.android.com/tools"
konghaorui committed
5 6
        android:layout_width="match_parent"
        android:layout_height="match_parent"
konghaorui committed
7 8
        android:background="@color/dynamic_white"
        tools:context=".members.MembersActivity">
konghaorui committed
9

konghaorui committed
10 11
    <android.support.v4.widget.SwipeRefreshLayout
            android:id="@+id/member_swrl"
konghaorui committed
12 13 14
            android:layout_width="match_parent"
            android:layout_height="match_parent">

konghaorui committed
15 16
        <com.ydl.ydlcommon.view.widgets.MyNestedScrollView
                android:id="@+id/members_myScrov"
konghaorui committed
17
                android:layout_width="match_parent"
konghaorui committed
18 19 20 21 22
                android:layout_height="match_parent"
                android:layout_alignParentStart="true"
                android:layout_alignParentLeft="true"
                android:layout_alignParentTop="true"
                android:fillViewport="true">
konghaorui committed
23

konghaorui committed
24
            <RelativeLayout
konghaorui committed
25
                    android:layout_width="match_parent"
konghaorui committed
26
                    android:layout_height="match_parent">
konghaorui committed
27

konghaorui committed
28 29
                <RelativeLayout
                        android:id="@+id/members_top_head_rel"
konghaorui committed
30
                        android:layout_width="match_parent"
konghaorui committed
31 32 33
                        android:layout_height="345dp"
                        android:focusable="true"
                        android:focusableInTouchMode="true">
konghaorui committed
34

konghaorui committed
35 36
                    <RelativeLayout
                            android:id="@+id/members_top_head1_rel"
konghaorui committed
37
                            android:layout_width="match_parent"
konghaorui committed
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
                            android:layout_height="310dp"
                            android:layout_alignParentStart="true"
                            android:layout_alignParentLeft="true"
                            android:layout_alignParentTop="true">

                        <LinearLayout
                                android:layout_width="match_parent"
                                android:layout_height="315dp"
                                android:orientation="vertical">

                            <ImageView
                                    android:id="@+id/members_top_bg_iv"
                                    android:layout_width="match_parent"
                                    android:layout_height="0dp"
                                    android:layout_weight="1"
                                    android:scaleType="fitXY" />

                            <View
                                    android:layout_width="match_parent"
                                    android:layout_height="0dp"
                                    android:layout_weight="1" />
                        </LinearLayout>


                        <com.ydl.ydlcommon.view.widgets.BorderCircleImageView
                                android:id="@+id/members_top_head_iv"
                                android:layout_width="80dp"
                                android:layout_height="80dp"
                                android:layout_centerInParent="true"
                                android:src="@drawable/dynamic_head_place_hold_pic"
                                myapp:pa_border_color="@color/dynamic_white"
                                myapp:pa_border_width="2dp" />
konghaorui committed
70

konghaorui committed
71 72 73 74 75 76 77 78
                        <LinearLayout
                                android:id="@+id/members_top_user_lin"
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:layout_below="@+id/members_top_head_iv"
                                android:layout_centerHorizontal="true"
                                android:layout_marginTop="10dp"
                                android:orientation="horizontal">
konghaorui committed
79

konghaorui committed
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98
                            <TextView
                                    android:id="@+id/members_top_user_tv"
                                    android:layout_width="wrap_content"
                                    android:layout_height="wrap_content"
                                    android:text=""
                                    android:textColor="@color/dynamic_black"
                                    android:textSize="18sp" />

                            <ImageView
                                    android:id="@+id/members_top_user_gender_iv"
                                    android:layout_width="15dp"
                                    android:layout_height="15dp"
                                    android:layout_gravity="center_vertical"
                                    android:layout_marginLeft="5dp"
                                    android:src="@drawable/dynamic_male" />
                        </LinearLayout>

                        <LinearLayout
                                android:id="@+id/members_top_user_focus_lin"
konghaorui committed
99
                                android:layout_width="wrap_content"
konghaorui committed
100 101 102 103 104 105
                                android:layout_height="wrap_content"
                                android:layout_below="@+id/members_top_user_lin"
                                android:layout_centerHorizontal="true"
                                android:layout_marginTop="10dp"
                                android:gravity="center_vertical"
                                android:orientation="horizontal">
konghaorui committed
106

konghaorui committed
107 108 109
                            <TextView
                                    android:id="@+id/members_top_user_visit_num_tv"
                                    android:layout_width="wrap_content"
110
                                    android:layout_height="wrap_content"
konghaorui committed
111 112
                                    android:text=""
                                    android:textColor="@color/dynamic_text_gray" />
konghaorui committed
113

konghaorui committed
114 115 116 117 118 119 120
                            <TextView
                                    android:layout_width="wrap_content"
                                    android:layout_height="wrap_content"
                                    android:layout_margin="5dp"
                                    android:layout_marginRight="5dp"
                                    android:text="|"
                                    android:textColor="@color/dynamic_text_gray" />
konghaorui committed
121 122

                            <TextView
konghaorui committed
123 124 125 126 127
                                    android:id="@+id/members_top_user_fensi_num_tv"
                                    android:layout_width="wrap_content"
                                    android:layout_height="wrap_content"
                                    android:text=""
                                    android:textColor="@color/dynamic_text_gray" />
konghaorui committed
128

konghaorui committed
129 130 131 132 133 134 135 136 137 138 139 140 141 142 143
                            <TextView
                                    android:layout_width="wrap_content"
                                    android:layout_height="wrap_content"
                                    android:layout_margin="5dp"
                                    android:layout_marginRight="5dp"
                                    android:text="|"
                                    android:textColor="@color/dynamic_text_gray" />

                            <TextView
                                    android:id="@+id/members_top_user_zan_num_tv"
                                    android:layout_width="wrap_content"
                                    android:layout_height="wrap_content"
                                    android:text=""
                                    android:textColor="@color/dynamic_text_gray" />
                        </LinearLayout>
konghaorui committed
144

konghaorui committed
145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181
                        <RelativeLayout
                                android:layout_width="match_parent"
                                android:layout_height="wrap_content"
                                android:layout_below="@+id/members_top_user_focus_lin"
                                android:layout_marginTop="10dp">

                            <RelativeLayout
                                    android:id="@+id/members_top_user_focus_ortion_rel"
                                    android:layout_width="92dp"
                                    android:layout_height="35dp"
                                    android:layout_centerInParent="true"
                                    android:background="@drawable/dynamic_focus_topic_detail_bg"
                                    android:visibility="gone">

                                <TextView
                                        android:id="@+id/members_top_user_focus_ortion_tv"
                                        android:layout_width="wrap_content"
                                        android:layout_height="wrap_content"
                                        android:layout_centerInParent="true"
                                        android:drawablePadding="10dp"
                                        android:text=""
                                        android:textColor="@color/dynamic_white"
                                        android:textSize="@dimen/platform_dp_15" />


                            </RelativeLayout>

                            <ImageView
                                    android:id="@+id/members_top_user_focus_iv"
                                    android:layout_width="40dp"
                                    android:layout_height="40dp"
                                    android:layout_centerVertical="true"
                                    android:layout_marginLeft="5dp"
                                    android:layout_toRightOf="@+id/members_top_user_focus_ortion_rel"
                                    android:padding="4dp"
                                    android:src="@drawable/dynamic_newsfeed_like"
                                    android:visibility="gone" />
konghaorui committed
182 183 184 185
                        </RelativeLayout>

                    </RelativeLayout>

konghaorui committed
186 187 188 189 190 191
                    <View
                            android:layout_width="match_parent"
                            android:layout_height="20dp"
                            android:layout_below="@+id/members_top_head1_rel"
                            android:layout_marginTop="15dp"
                            android:background="#f3f3f3" />
konghaorui committed
192 193 194
                </RelativeLayout>


konghaorui committed
195 196 197 198 199
                <RelativeLayout
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:layout_below="@+id/members_top_head_rel"
                        android:layout_marginTop="50dp">
konghaorui committed
200

konghaorui committed
201 202 203 204
                    <FrameLayout
                            android:id="@+id/members_content_frm"
                            android:layout_width="match_parent"
                            android:layout_height="match_parent" />
konghaorui committed
205

konghaorui committed
206
                </RelativeLayout>
konghaorui committed
207 208

            </RelativeLayout>
konghaorui committed
209
        </com.ydl.ydlcommon.view.widgets.MyNestedScrollView>
konghaorui committed
210
    </android.support.v4.widget.SwipeRefreshLayout>
konghaorui committed
211 212 213 214 215 216 217 218 219
    <!--    <View
            android:id="@+id/members_top_view"
            android:layout_width="match_parent"
            android:layout_height="20dp"
            android:layout_alignParentTop="true"
            android:focusable="true"
            android:focusableInTouchMode="true"
            android:background="@color/dynamic_trend_transparent"
            android:visibility="visible" />-->
konghaorui committed
220 221

    <RelativeLayout
konghaorui committed
222 223 224 225 226
            android:id="@+id/members_title_rel"
            android:layout_width="match_parent"
            android:layout_height="@dimen/platform_action_bar_height"
            android:layout_alignParentTop="true"
            android:background="@color/dynamic_trend_transparent">
konghaorui committed
227 228

        <ImageView
konghaorui committed
229 230 231 232 233 234 235 236
                android:id="@+id/members_title_back_iv"
                android:layout_width="wrap_content"
                android:layout_height="match_parent"
                android:layout_alignParentLeft="true"
                android:layout_centerInParent="true"
                android:paddingLeft="15dp"
                android:paddingRight="30dp"
                android:src="@drawable/dynamic_titlebar_back2" />
konghaorui committed
237 238

        <TextView
konghaorui committed
239 240 241 242 243 244 245 246 247 248 249 250 251
                android:id="@+id/members_title_top_tv"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_centerInParent="true"
                android:layout_centerVertical="true"
                android:layout_marginLeft="45dp"
                android:layout_marginRight="45dp"
                android:gravity="center_horizontal"
                android:singleLine="true"
                android:text=""
                android:textColor="@color/dynamic_black"
                android:textSize="@dimen/dynamic_title_txt_sp" />

konghaorui committed
252
        <ImageView
konghaorui committed
253 254 255 256 257 258 259 260 261 262
                android:id="@+id/members_title_top_right_tv"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentRight="true"
                android:layout_centerVertical="true"
                android:paddingLeft="15dp"
                android:paddingTop="15dp"
                android:paddingRight="15dp"
                android:paddingBottom="15dp"
                android:src="@drawable/dynamic_more_green2" />
konghaorui committed
263 264 265
    </RelativeLayout>

    <LinearLayout
konghaorui committed
266 267 268 269 270
            android:id="@+id/members_type_lin"
            android:layout_width="match_parent"
            android:layout_height="50dp"
            android:layout_marginTop="345dp"
            android:orientation="vertical">
konghaorui committed
271 272

        <LinearLayout
konghaorui committed
273 274 275 276 277
                android:layout_width="match_parent"
                android:layout_height="49.5dp"
                android:background="@color/dynamic_white"
                android:orientation="horizontal">

konghaorui committed
278
            <RelativeLayout
konghaorui committed
279 280 281 282
                    android:id="@+id/members_trend_rel"
                    android:layout_width="0dp"
                    android:layout_height="match_parent"
                    android:layout_weight="1">
konghaorui committed
283 284

                <TextView
konghaorui committed
285 286 287 288 289 290 291
                        android:id="@+id/members_trend_tv"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_centerInParent="true"
                        android:paddingLeft="15dp"
                        android:paddingRight="15dp"
                        android:text="动态"
292
                        android:textColor="@color/platform_main_theme"
konghaorui committed
293
                        android:textSize="18sp" />
konghaorui committed
294 295

                <TextView
konghaorui committed
296 297 298 299 300
                        android:id="@+id/members_trend_hint_tv"
                        android:layout_width="100dp"
                        android:layout_height="2dp"
                        android:layout_alignParentBottom="true"
                        android:layout_centerHorizontal="true"
301
                        android:background="@color/platform_main_theme" />
konghaorui committed
302 303 304 305

            </RelativeLayout>

            <RelativeLayout
konghaorui committed
306 307 308 309
                    android:id="@+id/members_information_rel"
                    android:layout_width="0dp"
                    android:layout_height="match_parent"
                    android:layout_weight="1">
konghaorui committed
310 311

                <TextView
konghaorui committed
312 313 314 315 316 317 318 319 320
                        android:id="@+id/members_information_tv"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_centerInParent="true"
                        android:paddingLeft="15dp"
                        android:paddingRight="15dp"
                        android:text="个人资料"
                        android:textColor="@color/dynamic_text_gray"
                        android:textSize="18sp" />
konghaorui committed
321 322

                <TextView
konghaorui committed
323 324 325 326 327 328
                        android:id="@+id/members_information_hint_tv"
                        android:layout_width="100dp"
                        android:layout_height="2dp"
                        android:layout_alignParentBottom="true"
                        android:layout_centerHorizontal="true"
                        android:background="@color/dynamic_white" />
konghaorui committed
329 330
            </RelativeLayout>
        </LinearLayout>
konghaorui committed
331

konghaorui committed
332
        <View
konghaorui committed
333 334 335 336
                android:layout_width="match_parent"
                android:layout_height="0.5dp"
                android:layout_below="@+id/members_type_lin"
                android:background="@color/dynamic_title_bottom_line_bg" />
konghaorui committed
337 338
    </LinearLayout>
</RelativeLayout>