From b9a6d9b9662e464536b9897e5cbc578901c244be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=81=E7=9A=AE?= <14840170+lao-pi123@user.noreply.gitee.com> Date: Sat, 14 Sep 2024 14:55:20 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E4=BF=AE=E6=94=B9=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E7=BA=A2=E6=A0=87=E3=80=81=E5=A4=B4=E5=83=8F=E8=A3=85=E6=89=AE?= =?UTF-8?q?=E3=80=81=E5=A8=B1=E4=B9=90=E9=A1=B6=E9=83=A8=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E3=80=81=E7=AD=89UI=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/res/drawable/background_ff4598.xml | 3 +- .../main/adapter/NewGameRoomTopAdapter.java | 3 +- .../yunbao/main/views/MainMeViewHolder.java | 32 +++++++- .../main/res/drawable/create_room_shape.xml | 3 +- .../main/res/drawable/game_selected_shape.xml | 9 +++ .../main/res/layout/item_game_room_type_1.xml | 5 +- .../main/res/layout/item_game_room_type_2.xml | 74 +++++++++---------- main/src/main/res/layout/item_main_me_2.xml | 12 ++- .../src/main/res/layout/view_main_message.xml | 2 +- main/src/main/res/layout/view_new_main_me.xml | 13 +++- 10 files changed, 100 insertions(+), 56 deletions(-) create mode 100644 main/src/main/res/drawable/game_selected_shape.xml diff --git a/live/src/main/res/drawable/background_ff4598.xml b/live/src/main/res/drawable/background_ff4598.xml index a3119f29b..36ffd0bd8 100644 --- a/live/src/main/res/drawable/background_ff4598.xml +++ b/live/src/main/res/drawable/background_ff4598.xml @@ -1,8 +1,7 @@ - - + diff --git a/main/src/main/java/com/yunbao/main/adapter/NewGameRoomTopAdapter.java b/main/src/main/java/com/yunbao/main/adapter/NewGameRoomTopAdapter.java index 74215fee3..8aadfaeb6 100644 --- a/main/src/main/java/com/yunbao/main/adapter/NewGameRoomTopAdapter.java +++ b/main/src/main/java/com/yunbao/main/adapter/NewGameRoomTopAdapter.java @@ -2,6 +2,7 @@ package com.yunbao.main.adapter; import android.annotation.SuppressLint; import android.content.Context; +import android.graphics.Color; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; @@ -9,6 +10,7 @@ import android.widget.ImageView; import android.widget.TextView; import androidx.annotation.NonNull; +import androidx.cardview.widget.CardView; import androidx.recyclerview.widget.RecyclerView; import com.bumptech.glide.Glide; @@ -116,7 +118,6 @@ public class NewGameRoomTopAdapter extends RecyclerView.Adapter - - + \ No newline at end of file diff --git a/main/src/main/res/drawable/game_selected_shape.xml b/main/src/main/res/drawable/game_selected_shape.xml new file mode 100644 index 000000000..d1ade161d --- /dev/null +++ b/main/src/main/res/drawable/game_selected_shape.xml @@ -0,0 +1,9 @@ + + + + + #26ff56a5 + 0 + 0 + \ No newline at end of file diff --git a/main/src/main/res/layout/item_game_room_type_1.xml b/main/src/main/res/layout/item_game_room_type_1.xml index 9db99762d..4d45dba84 100644 --- a/main/src/main/res/layout/item_game_room_type_1.xml +++ b/main/src/main/res/layout/item_game_room_type_1.xml @@ -3,7 +3,8 @@ - + android:background="@drawable/game_selected_shape" + android:layout_marginEnd="10dp" + android:layout_height="90dp"> - + - + - - - - - \ No newline at end of file + diff --git a/main/src/main/res/layout/item_main_me_2.xml b/main/src/main/res/layout/item_main_me_2.xml index cabd6755e..eea6eaaac 100644 --- a/main/src/main/res/layout/item_main_me_2.xml +++ b/main/src/main/res/layout/item_main_me_2.xml @@ -13,8 +13,9 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintEnd_toEndOf="parent" android:id="@+id/thumb" - android:layout_width="24dp" - android:layout_height="24dp" /> + android:layout_marginTop="11dp" + android:layout_width="22dp" + android:layout_height="22dp" /> diff --git a/main/src/main/res/layout/view_main_message.xml b/main/src/main/res/layout/view_main_message.xml index 542f13ef4..0ebc1be3e 100644 --- a/main/src/main/res/layout/view_main_message.xml +++ b/main/src/main/res/layout/view_main_message.xml @@ -3,7 +3,7 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" - android:paddingTop="20dp"> + android:paddingTop="40dp"> + +