app/src/main/res/layout/user_recyclerview_item.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:padding="0px">
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
app:cardBackgroundColor="@android:color/white"
android:layout_height="wrap_content"
app:cardElevation="2dp"
app:cardUseCompatPadding="true"
app:contentPadding="4dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="24dp"
android:orientation="horizontal">
<TextView
android:id="@+id/user_recyclerview_name"
style="@style/TextAppearance.AppCompat.Body1"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:textColor="@color/darkGrey"/>
<Button
android:id="@+id/remove_user_button"
android:layout_width="24dp"
android:layout_height="24dp"
android:background="@android:color/transparent"
android:drawableEnd="@drawable/ic_delete_black_24dp"
android:textAllCaps="false" />
</LinearLayout>
</androidx.cardview.widget.CardView>
</LinearLayout>