home: make toolbar collapse

Make the home toolbar collapse on scroll.

I was planning to implement this back in 2.0.0, but visual bugs stopped
me. Now, knowing how much space the the Toolbar + Tab combination takes
up on smaller devices, I think it would be better to have this in
general.
This commit is contained in:
OxygenCobalt
2022-06-08 09:31:57 -06:00
parent cc2561f20f
commit a6c321cfa5
25 changed files with 82 additions and 51 deletions
@@ -14,6 +14,7 @@
android:id="@+id/home_toolbar"
style="@style/Widget.Auxio.Toolbar"
app:menu="@menu/menu_home"
app:layout_scrollFlags="scroll|enterAlways"
app:title="@string/info_app_name" />
<com.google.android.material.tabs.TabLayout
+1 -1
View File
@@ -161,7 +161,7 @@
<string name="clr_grey">رمادي</string>
<!-- Format Namespace | Value formatting/plurals -->
<string name="fmt_song_count">الاغنية المُحملة: %d</string>
<string name="fmt_lib_song_count">الاغنية المُحملة: %d</string>
<plurals name="fmt_song_count">
<item quantity="zero">%d اغاني</item>
+5 -5
View File
@@ -190,11 +190,11 @@
<string name="fmt_indexing">Načítání hudební knihovny… (%1$d/%2$d)</string>
<string name="fmt_song_count">Načtených skladeb: %d</string>
<string name="fmt_album_count">Načtených alb: %d</string>
<string name="fmt_artist_count">Načtených umělců: %d</string>
<string name="fmt_genre_count">Načtených žánrů: %d</string>
<string name="fmt_total_duration">Celková doba trvání: %s</string>
<string name="fmt_lib_song_count">Načtených skladeb: %d</string>
<string name="fmt_lib_album_count">Načtených alb: %d</string>
<string name="fmt_lib_artist_count">Načtených umělců: %d</string>
<string name="fmt_lib_genre_count">Načtených žánrů: %d</string>
<string name="fmt_lib_total_duration">Celková doba trvání: %s</string>
<plurals name="fmt_song_count">
<item quantity="one">"%d skladba"</item>
+5 -5
View File
@@ -146,7 +146,7 @@
<string name="clr_grey">Grau</string>
<!-- Format Namespace | Value formatting/plurals -->
<string name="fmt_song_count">Geladene Lieder: %d</string>
<string name="fmt_lib_song_count">Geladene Lieder: %d</string>
<plurals name="fmt_song_count">
<item quantity="one">%d Lied</item>
@@ -191,8 +191,8 @@
<string name="fmt_disc_no">Schallplatte %d</string>
<string name="fmt_db_pos">+%.1f dB</string>
<string name="fmt_db_neg">-%.1f dB</string>
<string name="fmt_album_count">Geladene Alben: %d</string>
<string name="fmt_artist_count">Geladene Künstler: %d</string>
<string name="fmt_genre_count">Geladene Genres: %d</string>
<string name="fmt_total_duration">Gesamtdauer: %s</string>
<string name="fmt_lib_album_count">Geladene Alben: %d</string>
<string name="fmt_lib_artist_count">Geladene Künstler: %d</string>
<string name="fmt_lib_genre_count">Geladene Genres: %d</string>
<string name="fmt_lib_total_duration">Gesamtdauer: %s</string>
</resources>
+1 -1
View File
@@ -74,7 +74,7 @@
<string name="clr_grey">Γκρί</string>
<!-- Format Namespace | Value formatting/plurals -->
<string name="fmt_song_count">Τραγούδια φορτώθηκε: %d</string>
<string name="fmt_lib_song_count">Τραγούδια φορτώθηκε: %d</string>
<plurals name="fmt_song_count">
<item quantity="one">%d Τραγούδι</item>
+1 -1
View File
@@ -165,7 +165,7 @@
<string name="clr_grey">Gris</string>
<!-- Format Namespace | Value formatting/plurals -->
<string name="fmt_song_count">Canciones cargadas: %d</string>
<string name="fmt_lib_song_count">Canciones cargadas: %d</string>
<plurals name="fmt_song_count">
<item quantity="one">%d Canción</item>
+1 -1
View File
@@ -80,7 +80,7 @@
<string name="clr_grey">Gris</string>
<!-- Format Namespace | Value formatting/plurals -->
<string name="fmt_song_count">Titres chargés: %d</string>
<string name="fmt_lib_song_count">Titres chargés: %d</string>
<plurals name="fmt_song_count">
<item quantity="one">%s Titre</item>
+5 -5
View File
@@ -168,11 +168,11 @@
<string name="clr_grey">Grigio</string>
<!-- Format Namespace | Value formatting/plurals -->
<string name="fmt_song_count">Canzoni trovate: %d</string>
<string name="fmt_album_count">Dischi trovati: %d</string>
<string name="fmt_artist_count">Artisti trovati: %d</string>
<string name="fmt_genre_count">Generi trovati: %d</string>
<string name="fmt_total_duration">Durata totale: %s</string>
<string name="fmt_lib_song_count">Canzoni trovate: %d</string>
<string name="fmt_lib_album_count">Dischi trovati: %d</string>
<string name="fmt_lib_artist_count">Artisti trovati: %d</string>
<string name="fmt_lib_genre_count">Generi trovati: %d</string>
<string name="fmt_lib_total_duration">Durata totale: %s</string>
<plurals name="fmt_song_count">
<item quantity="one">%d canzone</item>
+5 -5
View File
@@ -186,11 +186,11 @@
<string name="fmt_db_pos">+%.1f dB</string>
<string name="fmt_db_neg">-%.1f dB</string>
<string name="fmt_song_count">불러온 음악: %d</string>
<string name="fmt_album_count">불러온 앨범: %d</string>
<string name="fmt_artist_count">불러온 아티스트: %d</string>
<string name="fmt_genre_count">불러온 장르: %d</string>
<string name="fmt_total_duration">총 길이: %s</string>
<string name="fmt_lib_song_count">불러온 음악: %d</string>
<string name="fmt_lib_album_count">불러온 앨범: %d</string>
<string name="fmt_lib_artist_count">불러온 아티스트: %d</string>
<string name="fmt_lib_genre_count">불러온 장르: %d</string>
<string name="fmt_lib_total_duration">총 길이: %s</string>
<plurals name="fmt_song_count">
<item quantity="other">%d 곡</item>
+1 -1
View File
@@ -133,7 +133,7 @@
<string name="clr_grey">Grijis</string>
<!-- Format Namespace | Value formatting/plurals -->
<string name="fmt_song_count">Nummers geladen: %d</string>
<string name="fmt_lib_song_count">Nummers geladen: %d</string>
<plurals name="fmt_song_count">
<item quantity="one">%d Nummer</item>
+1 -1
View File
@@ -78,7 +78,7 @@
<string name="clr_grey">Szary</string>
<!-- Format Namespace | Value formatting/plurals -->
<string name="fmt_song_count">Utwory uruchamia się: %d</string>
<string name="fmt_lib_song_count">Utwory uruchamia się: %d</string>
<plurals name="fmt_song_count">
<item quantity="one">%d Utwór</item>
+1 -1
View File
@@ -79,7 +79,7 @@
<string name="clr_grey">Grisalho</string>
<!-- Format Namespace | Value formatting/plurals -->
<string name="fmt_song_count">Músicas carregado: %d</string>
<string name="fmt_lib_song_count">Músicas carregado: %d</string>
<plurals name="fmt_song_count">
<item quantity="one">%d Música</item>
+1 -1
View File
@@ -80,7 +80,7 @@
<string name="clr_grey">Grisalho</string>
<!-- Format Namespace | Value formatting/plurals -->
<string name="fmt_song_count">Músicas carregado: %d</string>
<string name="fmt_lib_song_count">Músicas carregado: %d</string>
<plurals name="fmt_song_count">
<item quantity="one">%d Música</item>
+1 -1
View File
@@ -166,7 +166,7 @@
<string name="clr_grey">Серый</string>
<!-- Format Namespace | Value formatting/plurals -->
<string name="fmt_song_count">Всего треков: %d</string>
<string name="fmt_lib_song_count">Всего треков: %d</string>
<plurals name="fmt_song_count">
<item quantity="one">%d трек</item>
+1 -1
View File
@@ -60,7 +60,7 @@
<string name="desc_play_pause">Відтворити/Зупинити</string>
<!-- Format Namespace | Value formatting/plurals -->
<string name="fmt_song_count">Пісні завантажено: %d</string>
<string name="fmt_lib_song_count">Пісні завантажено: %d</string>
<plurals name="fmt_song_count">
<item quantity="one">%d Пісня</item>
+1 -1
View File
@@ -167,7 +167,7 @@
<string name="clr_grey">灰色</string>
<!-- Format Namespace | Value formatting/plurals -->
<string name="fmt_song_count">已加载 %d 首曲目</string>
<string name="fmt_lib_song_count">已加载 %d 首曲目</string>
<plurals name="fmt_song_count">
<item quantity="other">"%d 首歌曲"</item>
+5 -5
View File
@@ -192,11 +192,11 @@
<string name="fmt_indexing">Loading your music library… (%1$d/%2$d)</string>
<string name="fmt_song_count">Songs loaded: %d</string>
<string name="fmt_album_count">Albums loaded: %d</string>
<string name="fmt_artist_count">Artists loaded: %d</string>
<string name="fmt_genre_count">Genres loaded: %d</string>
<string name="fmt_total_duration">Total duration: %s</string>
<string name="fmt_lib_song_count">Songs loaded: %d</string>
<string name="fmt_lib_album_count">Albums loaded: %d</string>
<string name="fmt_lib_artist_count">Artists loaded: %d</string>
<string name="fmt_lib_genre_count">Genres loaded: %d</string>
<string name="fmt_lib_total_duration">Total duration: %s</string>
<plurals name="fmt_song_count">
<item quantity="one">%d Song</item>