settings: make tab dialog use checkboxes
Make the tab selection dialog use checkboxes instead of icons to make it more user-friendly.
This commit is contained in:
@@ -9,31 +9,24 @@
|
||||
android:layout_width="match_parent"
|
||||
android:padding="0dp">
|
||||
|
||||
<ImageView
|
||||
<com.google.android.material.checkbox.MaterialCheckBox
|
||||
android:id="@+id/tab_icon"
|
||||
android:scaleType="fitCenter"
|
||||
android:padding="@dimen/spacing_small"
|
||||
android:layout_width="@dimen/size_btn_small"
|
||||
android:layout_height="@dimen/size_btn_small"
|
||||
android:layout_margin="@dimen/spacing_small"
|
||||
android:src="@drawable/ic_artist"
|
||||
app:tint="@color/sel_accented"
|
||||
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="contentDescription" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tab_name"
|
||||
style="@style/Widget.Auxio.TextView.Item.Primary"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="@dimen/spacing_medium"
|
||||
android:gravity="center"
|
||||
android:maxLines="@null"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@+id/tab_icon"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:ignore="RtlSymmetry,contentDescription"
|
||||
tools:text="Artist" />
|
||||
|
||||
<ImageView
|
||||
|
||||
Reference in New Issue
Block a user