Implemented rating system for song, album and artist (album and artist do not retrieve rating from server)

This commit is contained in:
CappielloAntonio 2021-08-13 17:29:37 +02:00
parent 055ac44cf6
commit e2ddbdf6c9
15 changed files with 303 additions and 7 deletions

View file

@ -0,0 +1,22 @@
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto">
<RatingBar
android:id="@+id/rating_bar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="24dp"
android:layout_marginTop="24dp"
android:layout_marginEnd="24dp"
android:layout_marginBottom="12dp"
android:stepSize="1"
android:numStars="5"
android:rating="0"
android:progressTint="@color/startTintColor"
android:progressBackgroundTint="@color/startBackgroundTintColor"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"/>
</androidx.constraintlayout.widget.ConstraintLayout>

View file

@ -31,5 +31,8 @@
<color name="chipBorderColor">#707070</color>
<color name="chipSelectedBackgroundColor">#606060</color>
<color name="chipUnelectedBackgroundColor">#1D1D1D</color>
<color name="startTintColor">#733ae6</color>
<color name="startBackgroundTintColor">#1D1D1D</color>
</resources>

View file

@ -37,4 +37,6 @@
<color name="white">#FFFFFF</color>
<color name="startTintColor">#3700B3</color>
<color name="startBackgroundTintColor">#f0f0f0</color>
</resources>