fragment_comment.xml 2.21 KB
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:background="@drawable/res_shape_white_fix_background_disappearance_issue"
    android:descendantFocusability="blocksDescendants"
    android:orientation="vertical"
    tools:context="com.wd.comment.fragment.CommentFragment">

    <RelativeLayout
        android:id="@+id/rltop"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginStart="@dimen/rmrb_dp14"
        android:layout_marginTop="@dimen/rmrb_dp16"
        android:layout_marginBottom="@dimen/rmrb_dp8"
        android:visibility="gone">

        <ImageView
            android:id="@+id/ivleft"
            android:layout_width="@dimen/rmrb_dp3"
            android:layout_height="@dimen/rmrb_dp16"
            android:layout_centerVertical="true"
            android:layout_marginRight="@dimen/rmrb_dp5"
            android:scaleType="fitXY"
            android:src="@mipmap/icon_search_recommendationsleft" />

        <com.wd.foundation.wdkit.view.customtextview.StrokeWidthTextView
            android:id="@+id/header_Tv"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_toRightOf="@id/ivleft"
            android:gravity="center_vertical"
            android:text="全部评论"
            android:textColor="@color/res_color_common_C1"
            android:textSize="@dimen/rmrb_dp17"
            app:text_stroke_width="1"/>
    </RelativeLayout>

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_below="@+id/rltop"
        android:descendantFocusability="blocksDescendants">

        <androidx.recyclerview.widget.RecyclerView
            android:id="@+id/comment_Rv"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:nestedScrollingEnabled="false"/>

    </RelativeLayout>
</RelativeLayout>