home: re-add sorting

Re-add sorting to HomeFragment, except heavily improved. The major
improvement here is the addition of song sorting, which was a heavily
requested feature judging by #16. The setting does not save yet and
is not present in the detail fragments, but it is still a major
milestone for the new home ui.
This commit is contained in:
OxygenCobalt
2021-09-05 16:11:37 -06:00
parent 0fc8f1cd02
commit dae334b1d6
39 changed files with 371 additions and 143 deletions
-1
View File
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="surface">#fafafa</color>
<color name="surface_black">@android:color/black</color>
<color name="control">#202020</color>
<color name="nav_bar">#01fafafa</color>
+2 -2
View File
@@ -23,8 +23,8 @@
<string name="lbl_filter_all">All</string>
<string name="lbl_sort">Sort</string>
<string name="lbl_sort_alpha_down">Ascending</string>
<string name="lbl_sort_alpha_up">Descending</string>
<string name="lbl_sort_asc">Ascending</string>
<string name="lbl_sort_dsc">Descending</string>
<string name="lbl_sort_artist">Artist</string>
<string name="lbl_sort_album">Album</string>
<string name="lbl_sort_year">Year</string>
+1 -1
View File
@@ -36,7 +36,7 @@
<!-- Black theme dialog theme -->
<style name="Theme.CustomDialog.Black" parent="Theme.CustomDialog.Base">
<item name="colorSurface">@color/surface_black</item>
<item name="colorSurface">@android:color/black</item>
</style>
<!-- Material-specific dialog style -->
+1 -1
View File
@@ -9,7 +9,7 @@
<item name="android:elevation">@dimen/elevation_normal</item>
<item name="android:contentDescription">@string/desc_play_pause</item>
<item name="android:tint">?attr/colorSurface</item>
<item name="android:src">@drawable/ic_playing_state</item>
<item name="android:src">@drawable/sel_playing_state</item>
<item name="android:layout_marginStart">@dimen/spacing_large</item>
<item name="android:layout_marginTop">@dimen/spacing_medium</item>
<item name="android:layout_marginEnd">@dimen/spacing_large</item>
+1 -1
View File
@@ -43,7 +43,7 @@
<!-- The basic black theme derived in all black accents. -->
<style name="Theme.Base.Black" parent="Theme.Base">
<item name="colorSurface">@color/surface_black</item>
<item name="colorSurface">@android:color/black</item>
<item name="materialAlertDialogTheme">@style/Theme.CustomDialog.Black</item>
</style>