Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
14 kB
5
Indexable
Never
<?xml version="1.0" encoding="utf-8"?>

<androidx.constraintlayout.widget.ConstraintLayout 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:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="@drawable/shape_bottom_dialog_top_bg">

    <TextView
        android:layout_marginTop="12dp"
        android:id="@+id/textView5"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="评论详情"
        android:textSize="20dp"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent" />
    <RelativeLayout
        android:id="@+id/relativeLayout"
        android:layout_width="match_parent"
        android:layout_height="70dp"
        android:padding="12dp"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/textView5">

        <com.talk.casually.view.UserAvatarView
            android:id="@+id/useravatarview"
            android:layout_width="40dp"
            android:layout_height="40dp"
            android:layout_alignParentLeft="true"
            android:layout_centerVertical="true" />


        <androidx.appcompat.widget.AppCompatTextView
            android:id="@+id/tvCommenterName"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignTop="@id/useravatarview"
            android:layout_marginLeft="6dp"
            android:layout_toRightOf="@+id/useravatarview"
            android:maxLines="1"
            android:paddingVertical="2dp"
            android:text="hjtestt2"
            android:textColor="@color/color_theme"
            android:textSize="14sp" />

        <androidx.appcompat.widget.AppCompatTextView
            android:id="@+id/tvBuildLevel"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignTop="@id/tvCommenterName"
            android:layout_alignBottom="@+id/tvCommenterName"
            android:layout_toRightOf="@+id/tvCommenterName"
            android:layout_marginBottom="2dp"
            android:layout_marginLeft="8dp"
            android:paddingLeft="8dp"
            android:paddingTop="2dp"
            android:paddingRight="8dp"
            android:paddingBottom="2dp"
            android:text="1楼"
            android:textColor="@color/white"
            android:textSize="12sp"

            android:background="@drawable/text_fillet"/>

        <androidx.appcompat.widget.AppCompatTextView
            android:id="@+id/tvCommentTime"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_alignBottom="@id/useravatarview"
            android:layout_marginLeft="6dp"
            android:layout_toRightOf="@+id/useravatarview"
            android:text="10-04"
            android:textColor="@color/colorTxtHint"
            android:textSize="12sp" />
    </RelativeLayout>

    <androidx.appcompat.widget.AppCompatTextView
        android:id="@+id/tvCommentTitle"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:paddingLeft="60dp"
        android:text="hallo"
        android:textColor="@color/colorTxtNormal"
        android:textSize="16sp"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/relativeLayout" />

    <androidx.recyclerview.widget.RecyclerView
        android:id="@+id/rlPics"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:layout_constraintTop_toBottomOf="@+id/tvCommentTitle"
        tools:layout_editor_absoluteX="0dp" />

    <LinearLayout
        android:id="@+id/llControl"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="10dp"
        android:layout_weight="1"
        android:gravity="center|right"
        app:layout_constraintTop_toBottomOf="@+id/rlPics"
        android:orientation="horizontal">
        <LinearLayout
            android:id="@+id/llReward"
            android:layout_width="80dp"
            android:layout_height="wrap_content"
            android:gravity="center"
            android:orientation="horizontal">

            <ImageView
                android:id="@+id/ivReward"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:scaleType="fitXY"
                android:src="@mipmap/icon_reward" />

            <androidx.appcompat.widget.AppCompatTextView
                android:id="@+id/tvReward"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:gravity="center"
                android:text="打赏"
                android:textColor="@color/colorTxtInfo"
                android:textSize="12sp" />

        </LinearLayout>

        <LinearLayout
            android:id="@+id/llComment"
            android:layout_width="80dp"
            android:layout_height="wrap_content"
            android:gravity="center"
            android:orientation="horizontal">

            <ImageView
                android:id="@+id/ivComment"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:scaleType="fitXY"
                android:src="@mipmap/icon_message" />

            <androidx.appcompat.widget.AppCompatTextView
                android:id="@+id/tvComment"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:gravity="center"
                android:text="评论"
                android:textColor="@color/colorTxtInfo"
                android:textSize="12sp" />

        </LinearLayout>
    </LinearLayout>
    <View
        android:id="@+id/separatorLine"
        android:layout_width="match_parent"
        android:layout_height="3dp"
        android:layout_marginTop="8dp"
        android:background="@color/colorLine"
        app:layout_constraintTop_toBottomOf="@+id/llControl" />


<!--    <androidx.core.widget.NestedScrollView-->
<!--        android:id="@+id/nestedScrollView"-->
<!--        android:layout_width="match_parent"-->
<!--        android:layout_height="wrap_content"-->
<!--        app:layout_constraintStart_toStartOf="parent"-->
<!--        app:layout_constraintTop_toBottomOf="@+id/separatorLine"-->
<!--        android:paddingBottom="240dp">-->

        <com.scwang.smart.refresh.layout.SmartRefreshLayout
            android:id="@+id/srlComment"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            app:layout_constraintTop_toBottomOf="@+id/separatorLine"
            android:paddingBottom="260dp">

            <androidx.recyclerview.widget.RecyclerView
                android:id="@+id/rvComment"
                android:layout_width="match_parent"
                android:layout_height="wrap_content" />
            <TextView
                android:id="@+id/tvNoMore"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:gravity="center"
                android:text="到底了,没有更多了~"
                android:visibility="visible"
                android:layout_marginBottom="40dp"
                android:textColor="@color/colorTxtHint"
            />
        </com.scwang.smart.refresh.layout.SmartRefreshLayout>

    <View
        android:id="@+id/backDrop"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="#90000000"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        android:visibility="gone"></View>

    <androidx.constraintlayout.widget.ConstraintLayout
        android:id="@+id/llCommentBox"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="bottom"
        android:background="@drawable/shape_bottom_dialog_top_bg"
        android:padding="12dp"
        app:layout_constraintBottom_toBottomOf="parent"
        android:visibility="gone">

        <androidx.appcompat.widget.AppCompatEditText
            android:id="@+id/commentText"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:background="@drawable/shape_comment_et_bg"
            android:gravity="top|start"
            android:hint="请输入内容"
            android:lines="5"
            android:maxLength="150"
            android:paddingHorizontal="10dp"
            android:paddingVertical="10dp"
            android:textColor="@color/colorTxtNormal"
            android:textColorHint="@color/colorTxtHint"
            android:textSize="16sp"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="parent">

        </androidx.appcompat.widget.AppCompatEditText>

        <androidx.constraintlayout.widget.ConstraintLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="12dp"
            app:layout_constraintTop_toBottomOf="@+id/commentText">

            <androidx.appcompat.widget.AppCompatTextView
                android:id="@+id/characterLimit"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:paddingLeft="12dp"
                android:paddingTop="2dp"
                android:paddingRight="12dp"
                android:paddingBottom="2dp"
                android:text="还可以输入150字"
                android:textColor="@color/colorTxtHint"
                android:textSize="12dp"
                app:layout_constraintBottom_toBottomOf="parent"
                app:layout_constraintStart_toStartOf="parent"
                app:layout_constraintTop_toTopOf="parent" />

            <androidx.appcompat.widget.AppCompatTextView
                android:id="@+id/tvCancelComment"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginRight="12dp"
                android:background="@drawable/shape_comment_et_bg"
                android:paddingLeft="12dp"
                android:paddingTop="2dp"
                android:paddingRight="12dp"
                android:paddingBottom="2dp"
                android:text="取消"
                android:textColor="@color/black"
                android:textSize="16dp"
                app:layout_constraintEnd_toStartOf="@+id/sendComment"
                app:layout_constraintTop_toTopOf="parent" />

            <androidx.appcompat.widget.AppCompatTextView
                android:id="@+id/sendComment"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:background="@drawable/text_fillet"
                android:paddingLeft="12dp"
                android:paddingTop="2dp"
                android:paddingRight="12dp"
                android:paddingBottom="2dp"
                android:text="发送"
                android:textColor="@color/white"
                android:textSize="16dp"
                app:layout_constraintBottom_toBottomOf="parent"
                app:layout_constraintEnd_toEndOf="parent"
                app:layout_constraintTop_toTopOf="parent" />
        </androidx.constraintlayout.widget.ConstraintLayout>
    </androidx.constraintlayout.widget.ConstraintLayout>
    <androidx.constraintlayout.widget.ConstraintLayout
        android:id="@+id/llCommentBox2"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="bottom"
        android:background="@drawable/shape_bottom_dialog_top_bg"
        android:padding="12dp"
        app:layout_constraintBottom_toBottomOf="parent"
        android:visibility="visible">

        <TextView
            android:id="@+id/commentText2"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:background="@drawable/shape_comment_et_bg"
            android:gravity="top|start"
            android:hint=" 评论 hjtestt2:"
            android:maxLength="150"
            android:paddingHorizontal="10dp"
            android:paddingVertical="10dp"
            android:textColor="@color/colorTxtNormal"
            android:textColorHint="@color/colorTxtHint"
            android:textSize="16sp"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="parent">

        </TextView>
    </androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
Leave a Comment