|
@@ -0,0 +1,119 @@
|
|
|
+<?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">
|
|
|
+
|
|
|
+ <data>
|
|
|
+
|
|
|
+ <variable
|
|
|
+ name="vm"
|
|
|
+ type="com.quansu.heifengwuliu.vmodel.CommentListVModel" />
|
|
|
+ </data>
|
|
|
+
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="@color/color_bg"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:layout_marginStart="17dp"
|
|
|
+ android:layout_marginEnd="16dp"
|
|
|
+ android:layout_marginTop="12dp"
|
|
|
+ android:layout_marginBottom="12dp"
|
|
|
+ android:paddingStart="12dp"
|
|
|
+ android:paddingTop="11dp"
|
|
|
+ app:qmui_radius="4dp"
|
|
|
+ app:qmui_backgroundColor="@color/white"
|
|
|
+ app:qmui_borderColor="@color/white"
|
|
|
+ android:layout_height="80dp">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:layout_height="wrap_content">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:text="共计"
|
|
|
+ android:textSize="16sp"
|
|
|
+ android:textColor="#3D3F4E"
|
|
|
+ android:layout_height="wrap_content"/>
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ tools:text="48"
|
|
|
+ android:text="@{vm.info.total}"
|
|
|
+ android:textSize="16sp"
|
|
|
+ android:textColor="#3D3F4E"
|
|
|
+ android:layout_height="wrap_content"/>
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:text="条评论"
|
|
|
+ android:textSize="16sp"
|
|
|
+ android:textColor="#3D3F4E"
|
|
|
+ android:layout_height="wrap_content"/>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:layout_marginTop="12dp"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:layout_height="wrap_content">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:text="平均评分"
|
|
|
+ android:textSize="14sp"
|
|
|
+ android:textColor="#3D3F4E"
|
|
|
+ android:layout_height="wrap_content"/>
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="13dp"
|
|
|
+ android:layout_height="14dp"
|
|
|
+ android:textSize="16sp"
|
|
|
+ android:src="@drawable/ic_star_on"
|
|
|
+ android:layout_marginStart="5dp"
|
|
|
+ />
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ tools:text="4.9分"
|
|
|
+ android:text="@{vm.info.avg+@string/branch}"
|
|
|
+ android:textSize="12sp"
|
|
|
+ android:layout_marginStart="3dp"
|
|
|
+ android:textColor="#939393"
|
|
|
+ android:layout_height="wrap_content"/>
|
|
|
+
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <androidx.swiperefreshlayout.widget.SwipeRefreshLayout
|
|
|
+ android:id="@+id/refresh_layout"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent">
|
|
|
+
|
|
|
+ <androidx.recyclerview.widget.RecyclerView
|
|
|
+ android:id="@+id/recycler_view"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
|
|
+ tools:listitem="@layout/item_comment_list" />
|
|
|
+
|
|
|
+ </androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
|
|
+
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+</layout>
|