mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 01:53:31 +00:00
Added a viewpager on the music playback screen to display the lyrics
This commit is contained in:
parent
84fc07efe7
commit
d8662820f7
15 changed files with 176 additions and 162 deletions
6
app/src/main/res/layout/fragment_player_cover.xml
Normal file
6
app/src/main/res/layout/fragment_player_cover.xml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<ImageView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/now_playing_song_cover_image_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:paddingStart="24dp"
|
||||
android:paddingEnd="24dp"/>
|
||||
12
app/src/main/res/layout/fragment_player_lyrics.xml
Normal file
12
app/src/main/res/layout/fragment_player_lyrics.xml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/now_playing_song_lyrics_text_view"
|
||||
style="@style/LyricsTextView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:paddingStart="24dp"
|
||||
android:paddingEnd="24dp"/>
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
|
|
@ -2,6 +2,7 @@
|
|||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/player_body_bottom_sheet_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/colorPrimary"
|
||||
|
|
@ -53,9 +54,6 @@
|
|||
android:id="@+id/player_song_cover_view_pager"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginStart="24dp"
|
||||
android:layout_marginTop="16dp"
|
||||
android:layout_marginEnd="24dp"
|
||||
app:layout_constraintDimensionRatio="H,1:1"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
|
|
@ -140,7 +138,7 @@
|
|||
<TextView
|
||||
android:id="@+id/player_artist_name_label"
|
||||
style="@style/SubheadTextView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingStart="24dp"
|
||||
android:paddingEnd="24dp"
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
<color name="suggestionIconColor">#DADADA</color>
|
||||
<color name="darkIconColor">#CFCFCF</color>
|
||||
<color name="suggestionSelectedTextColor">#CCCCCC</color>
|
||||
<color name="dividerColor">#080808</color>
|
||||
<color name="dividerColor">#404040</color>
|
||||
<color name="hintTextColor">#CFCFCF</color>
|
||||
|
||||
<color name="buttonBackgroundColor">#1D1D1D</color>
|
||||
|
|
|
|||
|
|
@ -114,6 +114,7 @@
|
|||
<string name="player_hide_lyrics_button">Hide</string>
|
||||
<string name="player_show_lyrics_button">Show</string>
|
||||
<string name="player_song_lyrics_label">Lyrics</string>
|
||||
<string name="player_song_lyrics_none_available_label">No lyrics available</string>
|
||||
<string name="playing_notification_description">The playing notification provides actions for play/pause etc.</string>
|
||||
<string name="playing_notification_name">Playing Notification</string>
|
||||
<string name="playlist_catalogue_title">Playlist Catalogue</string>
|
||||
|
|
|
|||
|
|
@ -129,6 +129,12 @@
|
|||
<item name="android:textColor">@color/titleTextColor</item>
|
||||
</style>
|
||||
|
||||
<style name="LyricsTextView" parent="InterFontFamily">
|
||||
<item name="android:textSize">24sp</item>
|
||||
<item name="android:textFontWeight">700</item>
|
||||
<item name="android:textColor">@color/titleTextColor</item>
|
||||
</style>
|
||||
|
||||
<!-- Font dei pulsanti vari presenti nell'applicazione -->
|
||||
<style name="MainButton" parent="Widget.MaterialComponents.Button.UnelevatedButton">
|
||||
<item name="android:fontFamily">@font/inter</item>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue