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_square.xml | 18 ++++++++++-------- 1 files changed, 10 insertions(+), 8 deletions(-) diff --git a/app/src/main/res/layout/item_square.xml b/app/src/main/res/layout/item_square.xml index 748af5f..3ae11cc 100644 --- a/app/src/main/res/layout/item_square.xml +++ b/app/src/main/res/layout/item_square.xml @@ -1,13 +1,15 @@ <?xml version="1.0" encoding="utf-8"?> -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" +<com.duqing.missions.widgets.QuadrateLinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" - android:background="@drawable/bg_white_corner" - android:layout_marginTop="@dimen/activity_horizontal_margin" - android:layout_marginLeft="@dimen/activity_horizontal_margin" - android:layout_marginRight="@dimen/activity_horizontal_margin" - android:elevation="@dimen/small_radios"> + xmlns:tools="http://schemas.android.com/tools"> + + <ImageView + android:id="@+id/image" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:scaleType="centerCrop" + tools:srcCompat="@tools:sample/avatars" /> - -</LinearLayout> \ No newline at end of file +</com.duqing.missions.widgets.QuadrateLinearLayout> \ No newline at end of file -- Gitblit v1.9.1