|
|
@@ -1,44 +1,54 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+<com.google.android.material.listitem.ListItemCardView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
+ xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
+ android:id="@+id/cd_root"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:padding="12dp"
|
|
|
- android:background="?attr/selectableItemBackground"
|
|
|
- android:gravity="center_vertical"
|
|
|
- android:orientation="horizontal">
|
|
|
+ android:checkable="true"
|
|
|
+ app:cardCornerRadius="16dp"
|
|
|
+ android:layout_margin="8dp">
|
|
|
|
|
|
- <TextView
|
|
|
- android:padding="6dp"
|
|
|
- android:id="@+id/tv_name"
|
|
|
- android:layout_width="0dp"
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_weight="1"
|
|
|
- android:maxLines="1"
|
|
|
- android:textSize="16sp"
|
|
|
- tools:text="theme" />
|
|
|
+ android:padding="8dp"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:orientation="horizontal">
|
|
|
|
|
|
- <androidx.appcompat.widget.AppCompatImageView
|
|
|
- android:id="@+id/iv_share"
|
|
|
- android:layout_width="36dp"
|
|
|
- android:layout_height="36dp"
|
|
|
- android:layout_gravity="center"
|
|
|
- android:background="?attr/selectableItemBackgroundBorderless"
|
|
|
- android:contentDescription="@string/edit"
|
|
|
- android:padding="6dp"
|
|
|
- android:tooltipText="@string/edit"
|
|
|
- android:src="@drawable/ic_share"
|
|
|
- tools:ignore="UnusedAttribute" />
|
|
|
+ <TextView
|
|
|
+ android:padding="6dp"
|
|
|
+ android:id="@+id/tv_name"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:maxLines="1"
|
|
|
+ android:textSize="16sp"
|
|
|
+ tools:text="theme" />
|
|
|
|
|
|
- <androidx.appcompat.widget.AppCompatImageView
|
|
|
- android:id="@+id/iv_delete"
|
|
|
- android:layout_width="36dp"
|
|
|
- android:layout_height="36dp"
|
|
|
- android:background="?attr/selectableItemBackgroundBorderless"
|
|
|
- android:contentDescription="@string/delete"
|
|
|
- android:tooltipText="@string/delete"
|
|
|
- android:padding="6dp"
|
|
|
- android:src="@drawable/ic_clear_all"
|
|
|
- tools:ignore="UnusedAttribute" />
|
|
|
+ <androidx.appcompat.widget.AppCompatImageView
|
|
|
+ android:id="@+id/iv_share"
|
|
|
+ android:layout_width="36dp"
|
|
|
+ android:layout_height="36dp"
|
|
|
+ android:layout_gravity="center"
|
|
|
+ android:background="?attr/selectableItemBackgroundBorderless"
|
|
|
+ android:contentDescription="@string/edit"
|
|
|
+ android:padding="6dp"
|
|
|
+ android:tooltipText="@string/edit"
|
|
|
+ android:src="@drawable/ic_share"
|
|
|
+ tools:ignore="UnusedAttribute" />
|
|
|
|
|
|
-</LinearLayout>
|
|
|
+ <androidx.appcompat.widget.AppCompatImageView
|
|
|
+ android:id="@+id/iv_delete"
|
|
|
+ android:layout_width="36dp"
|
|
|
+ android:layout_height="36dp"
|
|
|
+ android:background="?attr/selectableItemBackgroundBorderless"
|
|
|
+ android:contentDescription="@string/delete"
|
|
|
+ android:tooltipText="@string/delete"
|
|
|
+ android:padding="6dp"
|
|
|
+ android:src="@drawable/ic_clear_all"
|
|
|
+ tools:ignore="UnusedAttribute" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+</com.google.android.material.listitem.ListItemCardView>
|