<?xml version="1.0" encoding="utf-8"?>
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
<androidx.constraintlayout.widget.ConstraintLayout
|
android:id="@+id/cl_bottom"
|
app:layout_constraintBottom_toBottomOf="parent"
|
android:layout_width="match_parent"
|
android:visibility="gone"
|
android:layout_height="wrap_content"
|
android:background="@color/white">
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:id="@+id/tv_like"
|
android:text="点赞"
|
app:layout_constraintEnd_toEndOf="parent"
|
android:layout_marginEnd="22dp"
|
app:layout_constraintBottom_toBottomOf="@id/et_content"
|
android:drawableTop="@mipmap/dianzan"
|
android:gravity="center"
|
android:textColor="@color/textColor"
|
android:textSize="10sp"/>
|
<EditText
|
android:id="@+id/et_content"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintEnd_toStartOf="@id/tv_like"
|
android:layout_marginStart="15dp"
|
android:layout_marginEnd="66dp"
|
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
android:layout_marginVertical="10dp"
|
android:singleLine="true"
|
android:imeOptions="actionSend"
|
android:inputType="text"
|
android:padding="10dp"
|
android:textSize="14sp"
|
android:background="@drawable/bg_grey_16dp"/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:id="@+id/tv_hint"
|
app:layout_constraintTop_toTopOf="@id/et_content"
|
app:layout_constraintBottom_toBottomOf="@id/et_content"
|
app:layout_constraintStart_toStartOf="@id/et_content"
|
app:layout_constraintEnd_toEndOf="@id/et_content"
|
android:text="添加评论"
|
android:textSize="14sp"
|
android:drawableStart="@mipmap/editor"
|
android:drawablePadding="7dp"
|
android:textColor="@color/textColor99"/>
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1px"
|
android:background="@color/dividing_line_color"
|
app:layout_constraintTop_toTopOf="parent"/>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
<com.scwang.smart.refresh.layout.SmartRefreshLayout
|
android:id="@+id/refreshLayout"
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintBottom_toTopOf="@id/cl_bottom">
|
<com.scwang.smart.refresh.header.ClassicsHeader
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"/>
|
<androidx.core.widget.NestedScrollView
|
android:layout_width="match_parent"
|
android:scrollbars="none"
|
android:layout_height="match_parent">
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical">
|
<androidx.recyclerview.widget.RecyclerView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:id="@+id/rv_moment"/>
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="13dp"
|
android:layout_marginTop="10dp"
|
android:textStyle="bold"
|
android:textSize="14sp"
|
android:textColor="@color/textColor"
|
android:id="@+id/tv_comment_total"
|
android:text="共0条评论"/>
|
<androidx.recyclerview.widget.RecyclerView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:id="@+id/rv_comment"/>
|
</LinearLayout>
|
</androidx.core.widget.NestedScrollView>
|
|
<com.scwang.smart.refresh.footer.ClassicsFooter
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"/>
|
</com.scwang.smart.refresh.layout.SmartRefreshLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|