<?xml version="1.0" encoding="utf-8"?>
|
<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
<androidx.constraintlayout.widget.ConstraintLayout
|
android:layout_width="match_parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
android:background="@drawable/bg_white_top_20dp"
|
android:paddingBottom="30dp"
|
android:layout_height="wrap_content">
|
<TextView
|
android:id="@+id/tv_count"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="0条提问"
|
android:textColor="@color/textColor"
|
android:textStyle="bold"
|
android:textSize="16sp"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
android:layout_marginTop="18dp"/>
|
<ImageView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:id="@+id/iv_close"
|
app:layout_constraintTop_toTopOf="@id/tv_count"
|
app:layout_constraintBottom_toBottomOf="@id/tv_count"
|
app:layout_constraintEnd_toEndOf="parent"
|
android:padding="10dp"
|
android:layout_marginEnd="5dp"
|
android:src="@mipmap/close"/>
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1px"
|
android:background="@color/textColor66"
|
app:layout_constraintTop_toBottomOf="@id/tv_count"
|
android:layout_margin="21dp"/>
|
<com.scwang.smart.refresh.layout.SmartRefreshLayout
|
android:layout_width="match_parent"
|
android:layout_height="420dp"
|
app:layout_constraintTop_toBottomOf="@id/tv_count"
|
android:layout_marginTop="22dp"
|
android:id="@+id/refreshLayout">
|
<com.scwang.smart.refresh.header.ClassicsHeader
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"/>
|
<androidx.recyclerview.widget.RecyclerView
|
android:id="@+id/rv_list"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"/>
|
<com.scwang.smart.refresh.footer.ClassicsFooter
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"/>
|
</com.scwang.smart.refresh.layout.SmartRefreshLayout>
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1px"
|
android:background="@color/textColor66"
|
app:layout_constraintTop_toBottomOf="@id/refreshLayout"/>
|
<TextView
|
android:id="@+id/tv_action"
|
app:layout_constraintTop_toBottomOf="@id/refreshLayout"
|
app:layout_constraintEnd_toEndOf="parent"
|
android:text="发布"
|
android:textColor="@color/white"
|
android:gravity="center"
|
android:textSize="12sp"
|
android:layout_marginEnd="40dp"
|
android:layout_marginTop="24dp"
|
android:layout_width="53dp"
|
android:layout_height="30dp"
|
android:background="@drawable/bg_green_14"/>
|
<EditText
|
android:id="@+id/et_content"
|
android:layout_width="0dp"
|
android:layout_height="30dp"
|
android:background="@drawable/bg_grey_line_14dp"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintEnd_toStartOf="@id/tv_action"
|
app:layout_constraintBaseline_toBaselineOf="@id/tv_action"
|
android:layout_marginStart="40dp"
|
android:singleLine="true"
|
android:hint="留下你的精彩评论吧"
|
android:paddingHorizontal="15dp"
|
android:textSize="11sp"
|
android:gravity="center_vertical"
|
android:layout_marginEnd="14dp"/>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</androidx.core.widget.NestedScrollView>
|