music: redesign music sources dialog

Now based around a more conventional design now that I no longer
need all the bells and whistles around include/exclude.
This commit is contained in:
Alexander Capehart
2024-12-26 18:22:28 -05:00
parent 75612dd1eb
commit 8d49893309
5 changed files with 116 additions and 81 deletions
@@ -1,65 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
<FrameLayout 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"
style="@style/Widget.Auxio.Dialog.NestedScrollView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
android:layout_height="match_parent">
<androidx.constraintlayout.widget.ConstraintLayout
<org.oxycblt.auxio.list.recycler.DialogRecyclerView
android:id="@+id/locations_recycler"
style="@style/Widget.Auxio.RecyclerView.Linear"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="match_parent"
android:layout_gravity="center"
android:clipToPadding="false"
android:overScrollMode="never"
app:layout_constraintTop_toBottomOf="@+id/locations_list_header"
tools:listitem="@layout/item_music_location" />
<TextView
android:id="@+id/locations_list_header"
style="@style/Widget.Auxio.TextView.Header"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingStart="@dimen/spacing_large"
android:paddingEnd="@dimen/spacing_large"
android:text="@string/set_locations_list"
app:layout_constraintTop_toTopOf="parent" />
<org.oxycblt.auxio.ui.RippleFixMaterialButton
android:id="@+id/locations_add"
style="@style/Widget.Auxio.Button.Icon.Small"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/spacing_mid_large"
android:contentDescription="@string/lbl_add"
app:icon="@drawable/ic_add_24"
app:layout_constraintBottom_toTopOf="@+id/locations_recycler"
app:layout_constraintEnd_toEndOf="@+id/locations_list_header"
app:layout_constraintTop_toTopOf="parent" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/locations_recycler"
style="@style/Widget.Auxio.RecyclerView.Linear"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_gravity="center"
android:layout_weight="1"
android:clipToPadding="false"
android:overScrollMode="never"
app:layout_constraintTop_toBottomOf="@+id/locations_list_header"
tools:listitem="@layout/item_music_location" />
<TextView
android:id="@+id/locations_empty"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingStart="@dimen/spacing_large"
android:paddingTop="@dimen/spacing_medium"
android:paddingEnd="@dimen/spacing_large"
android:paddingBottom="@dimen/spacing_medium"
android:text="@string/err_no_locations"
android:textAlignment="center"
android:textAppearance="@style/TextAppearance.Auxio.LabelLarge"
android:textColor="?android:attr/textColorSecondary"
app:layout_constraintTop_toTopOf="@+id/locations_recycler" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.core.widget.NestedScrollView>
</FrameLayout>
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/new_location_label"
style="@style/Widget.Auxio.TextView.Icon.Clickable"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/set_locations_new"
android:paddingTop="@dimen/spacing_mid_large"
android:paddingBottom="@dimen/spacing_mid_large"
android:paddingStart="@dimen/spacing_mid_large"
android:paddingEnd="@dimen/spacing_large"
app:drawableStartCompat="@drawable/ic_add_24"
app:layout_constraintBottom_toTopOf="@+id/about_wiki"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/about_version" />
+1
View File
@@ -314,6 +314,7 @@
<string name="set_locations">Music folders</string>
<string name="set_locations_desc">Manage where music should be loaded from</string>
<string name="set_locations_list">Folders</string>
<string name="set_locations_new">New folder</string>
<string name="set_reindex">Refresh music</string>
<string name="set_reindex_desc">Reload the music library, using cached tags when possible</string>
<!-- Different from "Reload music" -->