Fix bugs w/music loading

Fix bugs with how genres/album names are displayed.
This commit is contained in:
OxygenCobalt
2020-09-17 19:55:55 -06:00
parent ec45a020a5
commit 602cc2153f
14 changed files with 87 additions and 71 deletions
@@ -90,7 +90,7 @@
tools:text="2020" />
<TextView
android:id="@+id/header_songs"
android:id="@+id/header"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="@string/label_songs"
@@ -115,10 +115,8 @@
android:overScrollMode="never"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toBottomOf="@+id/header_songs"
app:layout_constraintVertical_bias="0.0"
app:layout_constraintTop_toBottomOf="@+id/header"
tools:itemCount="4"
tools:layout_editor_absoluteX="0dp"
tools:listitem="@layout/item_album_song" />
</androidx.constraintlayout.widget.ConstraintLayout>
@@ -90,7 +90,7 @@
tools:text="2 Albums, 20 Songs" />
<TextView
android:id="@+id/header_albums"
android:id="@+id/header"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="@string/label_albums"
@@ -103,8 +103,7 @@
android:paddingTop="@dimen/padding_small"
android:paddingBottom="@dimen/padding_small"
android:background="@drawable/header_dividers"
app:layout_constraintTop_toBottomOf="@+id/artist_counts"
tools:layout_editor_absoluteX="60dp" />
app:layout_constraintTop_toBottomOf="@+id/artist_counts" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/album_recycler"
@@ -115,7 +114,7 @@
android:overScrollMode="never"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toBottomOf="@+id/header_albums"
app:layout_constraintTop_toBottomOf="@+id/header"
tools:itemCount="4"
tools:listitem="@layout/item_album" />
+3 -3
View File
@@ -14,9 +14,9 @@
<string name="label_albums">Albums</string>
<string name="label_songs">Songs</string>
<string name="placeholder_unknown_genre">Unknown Genre</string>
<string name="placeholder_unknown_artist">Unknown Artist</string>
<string name="placeholder_unknown_album">Unknown Album</string>
<string name="placeholder_genre">Unknown Genre</string>
<string name="placeholder_artist">Unknown Artist</string>
<string name="placeholder_album">Unknown Album</string>
<string name="format_info">%1$s / %2$s</string>
<string name="format_double_counts">%1$s, %2$s</string>