mirror of
https://github.com/antebudimir/tempus.git
synced 2025-12-31 17:43:32 +00:00
style: Add song rating bar in landscape player controller layout
This commit is contained in:
parent
698ca3b22b
commit
08023026b4
1 changed files with 33 additions and 0 deletions
|
|
@ -75,6 +75,39 @@
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent" />
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/rating_container"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="0dp"
|
||||||
|
android:orientation="horizontal"
|
||||||
|
android:gravity="center"
|
||||||
|
android:scaleX="0.8"
|
||||||
|
android:scaleY="0.8"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toEndOf="@+id/vertical_guideline"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/player_media_quality_sector">
|
||||||
|
|
||||||
|
<RatingBar
|
||||||
|
android:id="@+id/song_rating_bar"
|
||||||
|
style="?android:attr/ratingBarStyleIndicator"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:numStars="5"
|
||||||
|
android:stepSize="1"
|
||||||
|
android:rating="0"
|
||||||
|
android:isIndicator="false" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/rating_text"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="8dp"
|
||||||
|
android:textSize="12sp"
|
||||||
|
android:textColor="?attr/colorOnSurfaceVariant"
|
||||||
|
android:text=""/>
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/player_media_title_label"
|
android:id="@+id/player_media_title_label"
|
||||||
style="@style/HeadlineLarge"
|
style="@style/HeadlineLarge"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue