
Make the tab selection dialog use checkboxes instead of icons to make it more user-friendly.
50 lines
No EOL
2.2 KiB
XML
50 lines
No EOL
2.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
style="@style/Widget.Auxio.ItemLayout"
|
|
android:layout_height="wrap_content"
|
|
android:layout_width="match_parent"
|
|
android:padding="0dp">
|
|
|
|
<com.google.android.material.checkbox.MaterialCheckBox
|
|
android:id="@+id/tab_icon"
|
|
android:layout_width="0dp"
|
|
style="@style/Widget.Material3.CompoundButton.CheckBox"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/spacing_medium"
|
|
android:layout_marginTop="@dimen/spacing_small"
|
|
android:layout_marginBottom="@dimen/spacing_small"
|
|
android:clickable="false"
|
|
android:focusable="false"
|
|
android:textSize="@dimen/text_size_small"
|
|
android:paddingStart="@dimen/spacing_medium"
|
|
app:buttonCompat="@null"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toStartOf="@+id/tab_drag_handle"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
tools:ignore="RtlSymmetry,contentDescription"
|
|
tools:text="Artist" />
|
|
|
|
<ImageView
|
|
android:id="@+id/tab_drag_handle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:clickable="true"
|
|
android:contentDescription="@string/desc_tab_handle"
|
|
android:focusable="true"
|
|
android:minWidth="@dimen/size_btn_small"
|
|
android:minHeight="@dimen/size_btn_small"
|
|
android:paddingStart="@dimen/spacing_medium"
|
|
android:paddingEnd="@dimen/spacing_medium"
|
|
android:scaleType="center"
|
|
android:src="@drawable/ic_handle"
|
|
app:layout_constraintBottom_toBottomOf="@+id/tab_icon"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="@+id/tab_icon" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</layout> |