dynamic_activity_trends_reply_info.xml 17.9 KB
Newer Older
YKai committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 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 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 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 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/dynamic_white">

    <RelativeLayout
        android:id="@+id/rela_toolBar"
        android:layout_width="match_parent"
        android:layout_height="45dp">

        <ImageView
            android:id="@+id/image_back"
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:gravity="center_vertical"
            android:paddingLeft="15dp"
            android:paddingRight="30dp"
            android:src="@drawable/platform_common_back" />

        <TextView
            android:id="@+id/tv_center_title"
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:layout_centerHorizontal="true"
            android:ellipsize="end"
            android:gravity="center"
            android:maxEms="12"
            android:maxLines="1"
            android:text="评论详情"
            android:textColor="@color/dynamic_default_text_color"
            android:textSize="@dimen/dynamic_default_text_size_big" />

        <ImageView
            android:id="@+id/image_right"
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:layout_alignParentRight="true"
            android:layout_marginLeft="10dp"
            android:layout_marginRight="10dp"
            android:gravity="center_vertical"
            android:paddingRight="10dp"
            android:visibility="gone"
            android:src="@drawable/platform_common_more" />

        <ImageView
            android:layout_width="match_parent"
            android:layout_height="@dimen/dynamic_divide_line_stroke_width"
            android:layout_alignParentBottom="true"
            android:background="@color/dynamic_divide_color" />

    </RelativeLayout>

    <com.ydl.ydlcommon.view.FixRequestDisallowTouchEventPtrFrameLayout
        android:id="@+id/store_house_ptr_frame"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        app:ptr_duration_to_close="300"
        app:ptr_duration_to_close_header="2000"
        app:ptr_keep_header_when_refresh="true"
        app:ptr_pull_to_fresh="false"
        app:ptr_ratio_of_header_height_to_refresh="1.2"
        android:layout_below="@id/rela_toolBar"
        app:ptr_resistance="1.7">

        <ScrollView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_alignParentLeft="true"
            android:layout_alignParentStart="true"
            android:overScrollMode="never">

            <LinearLayout
                android:id="@+id/lin_content"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="50dp"
                android:orientation="vertical"
                android:visibility="gone"
                tools:visibility="visible">

                <RelativeLayout
                    android:id="@+id/item_recommend_trend_user_rel"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:padding="5dp">

                    <RelativeLayout
                        android:id="@+id/item_trend_user_head"
                        android:layout_width="50dp"
                        android:layout_height="50dp"
                        android:layout_marginLeft="10dp">

                        <com.ydl.ydlcommon.view.CircleImageView
                            android:id="@+id/item_recommend_trend_user_head"
                            android:layout_width="50dp"
                            android:layout_height="50dp"
                            android:src="@drawable/dynamic_head_place_hold_pic" />

                        <ImageView
                            android:id="@+id/img_sex"
                            android:layout_width="15dp"
                            android:layout_height="15dp"
                            android:visibility="gone"
                            android:layout_alignBottom="@id/item_recommend_trend_user_head"
                            android:layout_alignRight="@+id/item_recommend_trend_user_head"
                            android:src="@drawable/dynamic_male" />

                    </RelativeLayout>

                    <TextView
                        android:id="@+id/text_userName"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_alignParentTop="true"
                        android:layout_marginLeft="20dp"
                        android:layout_marginTop="10dp"
                        android:layout_toRightOf="@+id/item_trend_user_head"
                        android:drawablePadding="5dp"
                        android:textColor="@color/dynamic_text_trend_black"
                        tools:text="小明" />


                    <TextView
                        android:id="@+id/text_time"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_below="@+id/text_userName"
                        android:layout_marginLeft="20dp"
                        android:layout_marginTop="5dp"
                        android:layout_toRightOf="@+id/item_trend_user_head"
                        android:textColor="@color/dynamic_text_trend_defult"
                        android:textSize="12sp"
                        tools:text="23分钟前" />
                </RelativeLayout>

                <TextView
                    android:id="@+id/text_content"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginLeft="15dp"
                    android:layout_marginRight="15dp"
                    android:layout_marginTop="15dp"
                    android:lineSpacingExtra="3dp"
                    android:layout_marginBottom="10dp"
                    android:textSize="17sp"
                    android:textColor="@color/dynamic_text_trend_black"
                    tools:text="外交部回应“朝鲜正准备第六次核试验”】有报道称,朝鲜正在准备进行第六次核试验,预计此次核试规模将比上一次增加十几倍。对此,外交部回应表示:中方反对朝鲜核试的立场是明确和一贯的。当前半岛形势高度复杂敏感,任何可能加剧半岛局势紧张的举动都是不可取的。希望相关各方都保持冷静克制,负起自己的责任,不要采取进一步相互刺激和加剧局势紧张的行动。" />

                <View
                    android:layout_width="match_parent"
                    android:layout_height="0.5dp"
                    android:layout_marginLeft="10dp"
                    android:layout_marginRight="10dp"
                    android:background="@color/dynamic_f5f5f5" />


                <TextView
                    android:id="@+id/item_recommend_trend_zannum_tv"
                    android:layout_width="wrap_content"
                    android:layout_height="40dp"
                    android:layout_centerVertical="true"
                    android:layout_marginLeft="15dp"
                    android:gravity="center_vertical"
                    android:layout_toRightOf="@+id/item_recommend_trend_readed_tv"
                    android:textColor="@color/dynamic_text_trend_defult"
                    tools:text="赞 10" />

                <View
                    android:layout_width="match_parent"
                    android:layout_height="0.5dp"
                    android:background="@color/dynamic_f5f5f5" />

                <androidx.recyclerview.widget.RecyclerView
                    android:id="@+id/recy_ico_list"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:padding="10dp">
                </androidx.recyclerview.widget.RecyclerView>

                <View
                    android:layout_width="match_parent"
                    android:layout_height="0.5dp"
                    android:background="@color/dynamic_f5f5f5" />

                <TextView
                    android:id="@+id/text_talk_num"
                    android:layout_width="match_parent"
                    android:layout_height="30dp"
                    android:gravity="center_vertical"
                    android:paddingLeft="10dp"
                    tools:text="24个评论" />

                <LinearLayout
                    android:id="@+id/lin_comment"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:orientation="vertical">
                    <RelativeLayout
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:layout_marginTop="5dp"
                        android:padding="5dp">

                        <RelativeLayout
                            android:id="@+id/item_trend_user_head_rel"
                            android:layout_width="40dp"
                            android:layout_height="40dp"
                            android:layout_marginLeft="10dp">

                            <ImageView
                                android:id="@+id/item_recommend_trend_user_head_iv"
                                android:layout_width="40dp"
                                android:layout_height="40dp"
                                tools:src="@drawable/dynamic_head_place_hold_pic"/>
                            <TextView
                                android:id="@+id/text_zixunshi"
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:background="@drawable/dynamic_bg_radius_line_yellow20"
                                android:paddingLeft="3dp"
                                android:paddingRight="3dp"
                                android:paddingTop="2dp"
                                android:paddingBottom="1dp"
                                android:gravity="center"
                                android:textColor="@color/dynamic_white"
                                android:layout_centerHorizontal="true"
                                android:textSize="@dimen/dynamic_text_size_9"
                                android:layout_alignParentBottom="true"
                                tools:visibility="visible"
                                android:visibility="gone"
                                android:text="咨询师"/>

                        </RelativeLayout>

                        <TextView
                            android:id="@+id/text_reply_userName"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_marginLeft="10dp"
                            tools:text="小明"
                            android:layout_marginTop="10dp"
                            android:drawablePadding="5dp"
                            android:layout_alignParentTop="true"
                            android:layout_toRightOf="@+id/item_trend_user_head_rel"
                            android:textColor="@color/dynamic_text_trend_black" />

                        <ImageView
                            android:id="@+id/comment_sex_iv"
                            android:layout_width="12dp"
                            android:layout_height="12dp"
                            android:layout_toRightOf="@id/text_reply_userName"
                            android:layout_marginTop="13dp"
                            android:layout_marginLeft="10dp"/>


                        <TextView
                            android:id="@+id/text_reply_time"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_below="@+id/text_reply_userName"
                            android:layout_marginLeft="10dp"
                            android:layout_marginTop="5dp"
                            android:layout_toRightOf="@+id/item_trend_user_head_rel"
                            tools:text="23分钟前"
                            android:textColor="@color/dynamic_text_trend_defult"
                            android:textSize="12sp" />

                        <TextView
                            android:id="@+id/text_chat"
                            android:layout_width="60dp"
                            android:layout_height="30dp"
                            android:layout_alignParentRight="true"
                            android:layout_centerVertical="true"
                            android:layout_marginRight="15dp"
                            android:background="@drawable/dynamic_shape_green_border_trend_info_bg"
                            android:gravity="center"
                            android:textColor="@color/platform_main_theme"
                            tools:visibility="visible"
                            android:visibility="gone"
                            android:text="私聊"/>

                    </RelativeLayout>

                    <TextView
                        android:id="@+id/text_comment_content"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:layout_marginLeft="70dp"
                        android:layout_marginTop="10dp"
                        android:layout_marginRight="10dp"
                        android:textSize="16sp"
                        android:layout_marginBottom="10dp"
                        tools:text="回复 朱浩亮 : 贾凯里尼的了俄国人陪 俄国骗人;可怕 二哥破解可配烤肉阿房宫人可配个节日俄国碰见个人俄国骗人;可怕人俄国佩佩人个二哥今儿俄国人二哥珀尔噢个可怕人过二哥拍"/>

                    <RelativeLayout
                        android:id="@+id/item_recommend_trend_zan_rel"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:layout_marginBottom="15dp"
                        android:layout_marginLeft="15dp"
                        android:layout_marginRight="15dp"
                        android:layout_marginTop="15dp">

                        <ImageView
                            android:layout_weight="1"
                            android:id="@+id/iv_shang"
                            android:layout_gravity="center_vertical"
                            android:src="@drawable/dynamic_reply_shang"
                            android:layout_width="25dp"
                            android:layout_height="25dp"
                            android:layout_marginRight="20dp"
                            android:layout_toLeftOf="@+id/img_comment_zan"/>

                        <ImageView
                            android:id="@+id/img_comment_zan"
                            android:layout_width="25dp"
                            android:layout_height="25dp"
                            android:layout_centerVertical="true"
                            android:layout_marginRight="20dp"
                            android:layout_toLeftOf="@+id/img_comment_share"
                            android:src="@drawable/dynamic_reply_zan" />

                        <ImageView
                            android:id="@+id/img_comment_share"
                            android:layout_width="25dp"
                            android:layout_height="25dp"
                            android:layout_alignParentRight="true"
                            android:layout_centerVertical="true"
                            android:src="@drawable/dynamic_newsfeed_reply" />
                    </RelativeLayout>
                </LinearLayout>



                <TextView
                    android:id="@+id/text_recver"
                    android:layout_width="match_parent"
                    android:layout_height="40dp"
                    android:gravity="center"
                    android:layout_marginTop="15dp"
                    android:layout_marginBottom="10dp"
                    android:layout_marginLeft="40dp"
                    android:layout_marginRight="40dp"
                    android:textColor="@color/platform_main_theme"
                    android:background="@drawable/dynamic_bg_radius_line_green_20"
                    android:text="回到主贴"/>

            </LinearLayout>

        </ScrollView>
    </com.ydl.ydlcommon.view.FixRequestDisallowTouchEventPtrFrameLayout>

    <RelativeLayout
        android:id="@+id/rela_nullTip"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:visibility="gone"
        android:paddingTop="50dp">
        <ImageView
            android:id="@+id/img_tip"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerHorizontal="true"
            android:src="@drawable/dynamic_blank"/>
        <TextView
            android:id="@+id/tv_null_tip"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_below="@id/img_tip"
            android:layout_centerHorizontal="true"
            android:layout_marginTop="20dp"
            android:text="当前评论已删除"/>
    </RelativeLayout>

</RelativeLayout>