顶部用户列表增大点击区域。

This commit is contained in:
2025-11-27 16:05:10 +08:00
parent bcf6dd6849
commit 9fdacb2fd5
3 changed files with 12 additions and 12 deletions

View File

@@ -1,20 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingVertical="@dimen/dp_5"
xmlns:app="http://schemas.android.com/apk/res-auto">
android:layout_height="@dimen/dp_40">
<com.xscm.moduleutil.widget.GifAvatarOvalView
<com.xscm.moduleutil.widget.CircularImage
android:id="@+id/user_icon"
android:layout_width="@dimen/dp_18"
android:layout_height="@dimen/dp_18"
android:layout_height="match_parent"
android:layout_marginVertical="@dimen/dp_10"
android:src="@mipmap/default_avatar"
android:layout_marginStart="-5dp"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:riv_oval="true"
app:layout_constraintEnd_toEndOf="parent"/>
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"/>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@@ -508,7 +508,7 @@ class RoomActivity : BaseMvpActivity<RoomPresenter?, ActivityRoomBinding?>(),
supportFragmentManager
)
LogUtils.e("fragment: ${(fragment != null)}")
LogUtils.e("fragment_onItemClickListener: ${(fragment != null)}")
if (fragment != null) {
addActiveDialogFragment(fragment) // 添加到管理列表
}

View File

@@ -89,14 +89,16 @@
android:gravity="center_vertical|right|center"
android:orientation="horizontal">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/user_recyclerView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_height="@dimen/dp_40"
android:layout_gravity="center"
android:overScrollMode="never"
tools:listitem="@layout/item_like_user"/>
<TextView
android:id="@+id/tv_num"
android:layout_width="@dimen/dp_30"