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/home_item_classify.xml | 27 +++++++++++---------------- 1 files changed, 11 insertions(+), 16 deletions(-) diff --git a/app/src/main/res/layout/home_item_classify.xml b/app/src/main/res/layout/home_item_classify.xml index 493a4b8..6081155 100644 --- a/app/src/main/res/layout/home_item_classify.xml +++ b/app/src/main/res/layout/home_item_classify.xml @@ -1,30 +1,25 @@ <?xml version="1.0" encoding="utf-8"?> -<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" +<LinearLayout 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" - android:layout_marginRight="10dp" - android:layout_marginLeft="10dp" - android:layout_width="match_parent" + android:padding="@dimen/frame_margin_lr" + android:orientation="vertical" + android:gravity="center" + android:layout_width="100dp" android:layout_height="wrap_content"> <ImageView android:id="@+id/img_icon" - android:layout_width="80dp" - android:layout_height="wrap_content" + android:layout_width="50dp" + android:layout_height="50dp" android:adjustViewBounds="true" - tools:srcCompat="@tools:sample/avatars" - app:layout_constraintTop_toTopOf="parent" - app:layout_constraintBottom_toBottomOf="parent" - app:layout_constraintLeft_toLeftOf="parent" - app:layout_constraintRight_toRightOf="parent"/> + android:scaleType="centerCrop" + tools:srcCompat="@tools:sample/avatars"/> <TextView android:id="@+id/textView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="TextView" - android:layout_marginTop="8dp" - app:layout_constraintTop_toBottomOf="@id/img_icon" - app:layout_constraintLeft_toLeftOf="parent" - app:layout_constraintRight_toRightOf="parent" /> -</androidx.constraintlayout.widget.ConstraintLayout> \ No newline at end of file + android:layout_marginTop="8dp" /> +</LinearLayout> \ No newline at end of file -- Gitblit v1.9.1