From 02206dc28952d4de0120977d4e38f3c24a93af0f Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Tue, 20 Sep 2022 18:30:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E7=BE=8E=E9=A2=9CUI=2090%?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/yunbao/faceunity/adapters/vh/StyleViewHolder.java | 1 + 1 file changed, 1 insertion(+) diff --git a/FaceUnity/src/main/java/com/yunbao/faceunity/adapters/vh/StyleViewHolder.java b/FaceUnity/src/main/java/com/yunbao/faceunity/adapters/vh/StyleViewHolder.java index 14bc28cfc..c3e675100 100644 --- a/FaceUnity/src/main/java/com/yunbao/faceunity/adapters/vh/StyleViewHolder.java +++ b/FaceUnity/src/main/java/com/yunbao/faceunity/adapters/vh/StyleViewHolder.java @@ -23,5 +23,6 @@ public class StyleViewHolder extends BaseViewHolder{ public void setData(BaseBean data) { icon.setImageResource(data.getImageRes()); title.setText(data.getDesRes()); + icon.setSelected(getSelectPosition()==getAdapterPosition()); } }