From a824b62bde75373c9b6b8d3a60b3a279895c8675 Mon Sep 17 00:00:00 2001
From: Administrator <123>
Date: Sat, 06 Nov 2021 08:17:44 +0000
Subject: [PATCH] 广场 帖子 UI

---
 app/src/main/res/layout/item/layout/dynamic_item_square.xml |  103 +++++++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 99 insertions(+), 4 deletions(-)

diff --git a/app/src/main/res/layout/item/layout/dynamic_item_square.xml b/app/src/main/res/layout/item/layout/dynamic_item_square.xml
index 962ebf1..45d4070 100644
--- a/app/src/main/res/layout/item/layout/dynamic_item_square.xml
+++ b/app/src/main/res/layout/item/layout/dynamic_item_square.xml
@@ -1,7 +1,102 @@
 <?xml version="1.0" encoding="utf-8"?>
-<androidx.constraintlayout.widget.ConstraintLayout
-    xmlns:android="http://schemas.android.com/apk/res/android"
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:tools="http://schemas.android.com/tools"
+    xmlns:app="http://schemas.android.com/apk/res-auto"
+    android:background="@drawable/bg_white_corner"
+    android:layout_margin="@dimen/activity_horizontal_margin"
+    android:padding="@dimen/activity_horizontal_margin"
+    android:elevation="@dimen/small_radios"
     android:layout_width="match_parent"
-    android:layout_height="match_parent" >
+    android:layout_height="wrap_content">
 
-</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
+
+    <ImageView
+        android:id="@+id/image_avatar"
+        android:layout_width="50dp"
+        android:layout_height="50dp"
+        android:layout_gravity="center_vertical"
+        android:layout_marginRight="@dimen/frame_margin_lr"
+        tools:srcCompat="@tools:sample/avatars" />
+
+    <TextView
+        android:id="@+id/text_name"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:text="名称"
+        android:layout_toRightOf="@id/image_avatar"
+        android:textSize="16sp"
+        android:textStyle="bold"
+        android:layout_marginRight="@dimen/frame_margin_lr"
+        android:textColor="@color/black" />
+
+    <TextView
+        android:id="@+id/text_sex"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:background="@drawable/bg_trans_red_circle"
+        android:textColor="@color/red"
+        android:paddingLeft="@dimen/frame_margin_lr"
+        android:paddingRight="@dimen/frame_margin_lr"
+        android:paddingTop="2dp"
+        android:paddingBottom="3dp"
+        android:text="性别"
+        android:textSize="10sp"
+        android:layout_toRightOf="@id/text_name"/>
+    <TextView
+        android:id="@+id/text_time"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:text="2020-02-02"
+        android:layout_alignBottom="@id/image_avatar"
+        android:layout_alignStart="@id/text_name"
+        android:textColor="@color/deep_gray" />
+
+    <ImageView
+        android:id="@+id/image_more"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_alignParentRight="true"
+        android:src="@drawable/ic_baseline_more_vert_24" />
+
+
+    <androidx.recyclerview.widget.RecyclerView
+        android:id="@+id/recycler"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:overScrollMode="never"
+        android:layout_below="@id/image_avatar"
+        android:layout_marginTop="@dimen/frame_margin_lr"
+        app:layoutManager="androidx.recyclerview.widget.GridLayoutManager"
+        tools:listitem="@layout/item_square"
+        tools:itemCount="9"
+        app:spanCount="3" />
+
+    <TextView
+        android:id="@+id/text_desc"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:maxLines="3"
+        android:textColor="@color/black_4"
+        android:ellipsize="end"
+        android:layout_below="@id/recycler"
+        android:layout_marginTop="@dimen/frame_margin_lr"
+        android:text="描述" />
+
+
+
+    <ImageView
+        android:id="@+id/check_like"
+        android:src="@android:drawable/btn_star_big_on"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_below="@id/text_desc" />
+
+    <ImageView
+        android:id="@+id/comment"
+        android:src="@android:drawable/btn_star_big_on"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_below="@id/text_desc"
+        android:layout_alignParentRight="true" />
+
+</RelativeLayout>
\ No newline at end of file

--
Gitblit v1.9.1