First song played: What she said - The Smiths

This commit is contained in:
Antonio Cappiello
2020-12-09 19:31:35 +01:00
parent 820f783d01
commit c1c02b3c37
14 changed files with 787 additions and 109 deletions

View File

@@ -10,9 +10,8 @@
app:cardCornerRadius="4dp">
<ImageView
android:id="@+id/discover_song_cover_image_view"
android:id="@+id/now_playing_song_cover_image_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:foreground="?attr/selectableItemBackground"/>
android:layout_height="match_parent"/>
</androidx.cardview.widget.CardView>

View File

@@ -22,6 +22,21 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<ToggleButton
android:id="@+id/play_pause_button"
android:layout_width="26dp"
android:layout_height="26dp"
android:background="@drawable/button_play_pause_selector"
android:checked="true"
android:gravity="center_vertical"
android:layout_marginTop="20dp"
android:layout_marginEnd="24dp"
android:text=""
android:textOff=""
android:textOn=""
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<androidx.viewpager2.widget.ViewPager2
android:id="@+id/player_song_cover_view_pager"
android:layout_width="0dp"
@@ -32,16 +47,14 @@
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@+id/collapse_bottom_sheet_button" />
<ProgressBar
android:id="@+id/player_big_progress_bar"
style="@style/Widget.AppCompat.ProgressBar.Horizontal"
<SeekBar
android:id="@+id/player_big_seek_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginStart="28dp"
android:layout_marginTop="18dp"
android:layout_marginEnd="28dp"
android:progress="50"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/player_song_cover_view_pager" />
@@ -51,7 +64,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintTop_toBottomOf="@+id/player_big_progress_bar"
app:layout_constraintTop_toBottomOf="@+id/player_big_seek_bar"
app:layout_constraintEnd_toEndOf="parent"
android:orientation="horizontal">

View File

@@ -35,6 +35,8 @@
<string name="unplayable_file">Couldn\'t play this song.</string>
<string name="playlist_is_empty">Playlist is empty</string>
<string name="audio_focus_denied">Audio focus denied.</string>
<string name="added_title_to_queue">"Added 1 title to the queue."</string>
<string name="added_x_titles_to_queue">Added %1$d titles to the queue.</string>
<string name="action_play_next">Play next</string>
<string name="action_play">Play</string>