From c7feccef6e61c2610caee8be4f42355dc919e76d Mon Sep 17 00:00:00 2001 From: Taras Smakula <tarassmakula@gmail.com> Date: Thu, 21 Mar 2024 14:44:31 +0200 Subject: [PATCH] Make remove button on switch user item bigger --- .../feature/log_in/switch_user/list/SwitchUsersViewHolder.kt | 3 +-- auth/src/main/res/layout/list_item_switch_user.xml | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/auth/src/main/java/org/futo/circles/auth/feature/log_in/switch_user/list/SwitchUsersViewHolder.kt b/auth/src/main/java/org/futo/circles/auth/feature/log_in/switch_user/list/SwitchUsersViewHolder.kt index 379ecc277..e0fa46562 100644 --- a/auth/src/main/java/org/futo/circles/auth/feature/log_in/switch_user/list/SwitchUsersViewHolder.kt +++ b/auth/src/main/java/org/futo/circles/auth/feature/log_in/switch_user/list/SwitchUsersViewHolder.kt @@ -3,11 +3,10 @@ package org.futo.circles.auth.feature.log_in.switch_user.list import android.view.ViewGroup import androidx.recyclerview.widget.RecyclerView import org.futo.circles.auth.databinding.ListItemSwitchUserBinding -import org.futo.circles.core.extensions.notEmptyDisplayName import org.futo.circles.auth.model.SwitchUserListItem import org.futo.circles.core.base.list.ViewBindingHolder -import org.futo.circles.core.extensions.loadRoomProfileIcon import org.futo.circles.core.extensions.loadUserProfileIcon +import org.futo.circles.core.extensions.notEmptyDisplayName import org.futo.circles.core.extensions.onClick class SwitchUsersViewHolder( diff --git a/auth/src/main/res/layout/list_item_switch_user.xml b/auth/src/main/res/layout/list_item_switch_user.xml index 4be833383..8b199acf5 100644 --- a/auth/src/main/res/layout/list_item_switch_user.xml +++ b/auth/src/main/res/layout/list_item_switch_user.xml @@ -16,10 +16,9 @@ <com.google.android.material.imageview.ShapeableImageView android:id="@+id/ivRemove" - android:layout_width="24dp" + android:layout_width="wrap_content" android:layout_height="0dp" - android:layout_marginTop="8dp" - android:layout_marginEnd="8dp" + android:padding="6dp" android:background="?attr/selectableItemBackgroundBorderless" android:clickable="true" android:focusable="true" -- GitLab