From d44df09e5c6b27728f7f4dfb55e323dd1a234629 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Tue, 2 Apr 2024 16:10:04 +0800 Subject: [PATCH] =?UTF-8?q?fix=20[=E7=88=B1=E5=A5=BD=E4=BC=9A=E9=81=AE?= =?UTF-8?q?=E6=8C=A1]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/activity/EditUserHobbyActivity.java | 1 + .../res/layout/activity_edit_user_hobby.xml | 76 ++++++++++++------- .../main/res/layout/item_edit_user_hobby.xml | 1 + 3 files changed, 49 insertions(+), 29 deletions(-) diff --git a/main/src/main/java/com/yunbao/main/activity/EditUserHobbyActivity.java b/main/src/main/java/com/yunbao/main/activity/EditUserHobbyActivity.java index c34982a..d6ceed3 100644 --- a/main/src/main/java/com/yunbao/main/activity/EditUserHobbyActivity.java +++ b/main/src/main/java/com/yunbao/main/activity/EditUserHobbyActivity.java @@ -44,6 +44,7 @@ public class EditUserHobbyActivity extends AbsActivity { mCancel = findViewById(R.id.btn_cancel); adapter = new EditUserHobbyAdapter(); recyclerView.setAdapter(adapter); + recyclerView.setNestedScrollingEnabled(false); adapter.setOnItemClickListener(new OnItemClickListener>() { @Override public void onItemClick(List bean, int position) { diff --git a/main/src/main/res/layout/activity_edit_user_hobby.xml b/main/src/main/res/layout/activity_edit_user_hobby.xml index ebdbb9c..b010e82 100644 --- a/main/src/main/res/layout/activity_edit_user_hobby.xml +++ b/main/src/main/res/layout/activity_edit_user_hobby.xml @@ -34,45 +34,63 @@ app:layout_constraintStart_toStartOf="@+id/titleView" app:layout_constraintTop_toBottomOf="@+id/titleView" /> - + app:layout_constraintTop_toBottomOf="@+id/number"> + + + + + + +