Add song count/Styling changes

Add a song count to the album item, along with updating the font once again to differentiate myself from Music Player GO.
This commit is contained in:
OxygenCobalt
2020-08-24 19:01:28 -06:00
parent 1e4f80b779
commit f511cfd161
15 changed files with 78 additions and 43 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+24 -10
View File
@@ -13,35 +13,49 @@
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="@dimen/margin_medium">
android:padding="@dimen/padding_small">
<ImageView
android:id="@+id/cover"
android:layout_width="@dimen/cover_size"
android:layout_height="@dimen/cover_size"
android:layout_width="42dp"
android:layout_height="45dp"
android:contentDescription="@{@string/description_cover_art + album.title}"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:src="@tools:sample/backgrounds/scenic" />
tools:src="@tools:sample/backgrounds/scenic"
tools:srcCompat="@tools:sample/backgrounds/scenic" />
<TextView
android:id="@+id/albumNameText"
android:id="@+id/album_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/margin_medium"
android:fontFamily="@font/source_sans_pro"
android:layout_marginStart="@dimen/margin_small"
android:text="@{album.title}"
android:textAppearance="?android:attr/textAppearanceListItem"
android:textColor="?android:attr/textColorPrimary"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.05"
android:fontFamily="@font/inter"
app:layout_constraintBottom_toTopOf="@+id/song_count"
app:layout_constraintStart_toEndOf="@+id/cover"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_chainStyle="packed"
tools:text="Album Name" />
<TextView
android:id="@+id/song_count"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/margin_small"
android:fontFamily="@font/inter"
android:textAppearance="?android:attr/textAppearanceListItem"
android:textColor="?android:attr/textColorSecondary"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toEndOf="@+id/cover"
app:layout_constraintTop_toBottomOf="@+id/album_name"
app:songCount="@{album}"
tools:text="@string/tools_song_count" />
</androidx.constraintlayout.widget.ConstraintLayout>
</layout>
+3 -3
View File
@@ -20,7 +20,7 @@
android:layout_height="wrap_content"
android:indeterminateTint="?android:attr/colorAccent"
android:indeterminateTintMode="src_in"
android:paddingBottom="@dimen/padding_small"
android:paddingBottom="@dimen/padding_tiny"
app:layout_constraintBottom_toTopOf="@+id/error_text"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
@@ -32,7 +32,7 @@
android:id="@+id/error_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/source_sans_pro"
android:fontFamily="@font/inter"
app:layout_constraintBottom_toTopOf="@+id/reset_button"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
@@ -45,10 +45,10 @@
style="@style/Widget.AppCompat.Button.Borderless.Colored"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/source_sans_pro"
android:onClick="@{() -> loadingModel.retry()}"
android:text="@string/label_retry"
android:visibility="gone"
android:fontFamily="@font/inter_semibold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
+5 -5
View File
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="padding_small">4dp</dimen>
<dimen name="padding_medium">8dp</dimen>
<dimen name="padding_tiny">4dp</dimen>
<dimen name="padding_small">8dp</dimen>
<dimen name="margin_medium">8dp</dimen>
<dimen name="margin_small">8dp</dimen>
<dimen name="cover_size">64dp</dimen>
<dimen name="cover_size">44dp</dimen>
<dimen name="elevation_normal">6dp</dimen>
<dimen name="elevation_normal">4dp</dimen>
</resources>
+5
View File
@@ -6,8 +6,13 @@
<string name="error_music_load_failed">Music loading failed.</string>
<string name="label_retry">Retry</string>
<string name="label_single_song">1 Song</string>
<string name="format_multi_song_count">%s Songs</string>
<string name="title_library_fragment"><b>Library</b></string>
<string name="description_cover_art">Cover art for </string>
<string name="tools_song_count">10 Songs</string>
</resources>
+1 -1
View File
@@ -7,7 +7,7 @@
</style>
<style name="ToolbarText" parent="TextAppearance.AppCompat.Title">
<item name="android:fontFamily">@font/source_sans_pro_black</item>
<item name="android:textColor">@color/blue</item>
<item name="android:fontFamily">@font/inter_black</item>
</style>
</resources>