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:
@@ -1,10 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:color="@color/mtrl_btn_ripple_color">
|
||||
<item>
|
||||
<shape android:shape="rectangle"
|
||||
<item android:id="@android:id/background">
|
||||
<shape
|
||||
android:shape="rectangle"
|
||||
android:tint="@color/sel_accented">
|
||||
<corners android:radius="@dimen/spacing_mid_large" />
|
||||
<corners android:radius="@dimen/spacing_large" />
|
||||
<solid android:color="@android:color/white" />
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
android:layout_height="match_parent"
|
||||
android:overScrollMode="never"
|
||||
android:paddingTop="@dimen/spacing_medium"
|
||||
android:paddingStart="@dimen/spacing_small"
|
||||
android:paddingEnd="@dimen/spacing_small"
|
||||
android:paddingStart="@dimen/spacing_medium"
|
||||
android:paddingEnd="@dimen/spacing_medium"
|
||||
app:layoutManager="org.oxycblt.auxio.accent.AutoGridLayoutManager"
|
||||
app:layout_constraintBottom_toTopOf="@+id/accent_cancel"
|
||||
app:layout_constraintTop_toBottomOf="@+id/accent_header"
|
||||
|
||||
@@ -7,7 +7,8 @@
|
||||
android:theme="@style/ThemeOverlay.Accent"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="@dimen/spacing_small">
|
||||
android:paddingTop="@dimen/spacing_small"
|
||||
android:paddingBottom="@dimen/spacing_small">
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/accent"
|
||||
|
||||
@@ -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