127 lines
5.0 KiB
XML
127 lines
5.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<layout 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"
|
|
tools:context=".activity.DynamicDetailActivity">
|
|
|
|
<data>
|
|
|
|
</data>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical">
|
|
|
|
<!-- 顶部标题栏 -->
|
|
<com.xscm.moduleutil.widget.CustomTopBar
|
|
android:id="@+id/top_bar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content" />
|
|
|
|
<!-- 主内容 RecyclerView -->
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/recycle_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingLeft="@dimen/dp_6"
|
|
android:paddingRight="@dimen/dp_6"
|
|
android:paddingBottom="@dimen/dp_12"
|
|
tools:itemCount="1"
|
|
tools:listitem="@layout/item_cirle_list" />
|
|
|
|
<!-- 评论列表 ScrollView -->
|
|
<ScrollView
|
|
android:id="@+id/scroll_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1"
|
|
android:background="@drawable/bg_r16_fff">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<!-- 全部评论标题 -->
|
|
<TextView
|
|
android:id="@+id/tv_num"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="@dimen/dp_16"
|
|
android:layout_marginTop="@dimen/dp_12"
|
|
android:gravity="center|left"
|
|
android:text="全部评论(0)"
|
|
android:textColor="@color/color_FF333333"
|
|
android:textSize="@dimen/sp_16"
|
|
android:textStyle="bold" />
|
|
|
|
<!-- 刷新控件包裹的评论 RecyclerView -->
|
|
<com.scwang.smartrefresh.layout.SmartRefreshLayout
|
|
android:id="@+id/srl"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:srlEnableLoadMore="false"
|
|
app:srlEnableRefresh="false">
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/rv_comment"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content" />
|
|
</com.scwang.smartrefresh.layout.SmartRefreshLayout>
|
|
|
|
<!-- <!– 分割线 –>-->
|
|
<!-- <View-->
|
|
<!-- android:layout_width="match_parent"-->
|
|
<!-- android:layout_height="@dimen/dp_0_5"-->
|
|
<!-- android:background="#ccc" />-->
|
|
|
|
</LinearLayout>
|
|
</ScrollView>
|
|
|
|
<!-- 输入区域,始终位于底部 -->
|
|
<LinearLayout
|
|
android:id="@+id/cl_input"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/dp_70"
|
|
android:background="#ffffff"
|
|
android:orientation="horizontal"
|
|
android:paddingVertical="@dimen/dp_8">
|
|
|
|
<EditText
|
|
android:id="@+id/et_input"
|
|
android:layout_width="0dp"
|
|
android:layout_height="@dimen/dp_40"
|
|
android:layout_weight="1"
|
|
android:layout_marginStart="@dimen/dp_16"
|
|
android:layout_marginEnd="@dimen/dp_8"
|
|
android:background="@drawable/bg_r80_hui"
|
|
android:gravity="center_vertical"
|
|
android:hint="就差你一个神评论~"
|
|
android:paddingStart="@dimen/dp_12"
|
|
android:textSize="@dimen/sp_14"
|
|
app:layout_constraintEnd_toStartOf="@+id/tv_send"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_send"
|
|
android:layout_width="@dimen/dp_80"
|
|
android:layout_height="@dimen/dp_30"
|
|
android:layout_marginEnd="@dimen/dp_12"
|
|
android:background="@drawable/cs"
|
|
android:gravity="center"
|
|
android:text="发送"
|
|
android:textColor="@color/color_FF333333"
|
|
android:textSize="@dimen/sp_12"
|
|
android:textStyle="bold"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</layout> |