From 151abf13e8ce5effdf686f440ecd44702bb74f80 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: Tue, 15 Oct 2024 16:42:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=9B=B4=E6=92=AD=E9=97=B4?= =?UTF-8?q?=E5=BF=83=E6=84=BF=E6=98=BE=E7=A4=BA=E6=96=87=E5=AD=97=E5=92=8C?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E9=87=8D=E5=8F=A0=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?---=E6=94=B9=E4=B8=BA=E8=B7=91=E9=A9=AC=E7=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../live/views/TopBannerCustomViewHolder.java | 1 + .../res/layout/view_live_top_banner_wish.xml | 27 ++++++++++++++----- 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/live/src/main/java/com/yunbao/live/views/TopBannerCustomViewHolder.java b/live/src/main/java/com/yunbao/live/views/TopBannerCustomViewHolder.java index f38d9000c..689dfe0a3 100644 --- a/live/src/main/java/com/yunbao/live/views/TopBannerCustomViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/TopBannerCustomViewHolder.java @@ -36,6 +36,7 @@ public class TopBannerCustomViewHolder implements BannerViewHolder { view = LayoutInflater.from(context).inflate(R.layout.view_live_top_banner_wish, null); ImageView wishlistIcon = view.findViewById(R.id.wishlist_icon); TextView wishlistName = view.findViewById(R.id.wishlist_name); + wishlistName.setSelected(true); TextView wishlistProgress = view.findViewById(R.id.wishlist_progress); ImgLoader.display(context, data.getWishlistIcon(), wishlistIcon); wishlistName.setText(data.getWishlistName()); diff --git a/live/src/main/res/layout/view_live_top_banner_wish.xml b/live/src/main/res/layout/view_live_top_banner_wish.xml index 5687723ff..ca1285407 100644 --- a/live/src/main/res/layout/view_live_top_banner_wish.xml +++ b/live/src/main/res/layout/view_live_top_banner_wish.xml @@ -2,22 +2,32 @@ - + android:layout_gravity="center" + app:layout_constraintTop_toBottomOf="@id/title" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintEnd_toEndOf="parent" + android:layout_marginTop="2dp" + /> - +