Add favorite and info button in landscape Now Playing view.

This commit is contained in:
Antoine POPINEAU 2020-07-11 19:30:10 +02:00
parent 8d7836172b
commit 9fb9d45e05
No known key found for this signature in database
GPG Key ID: A78AC64694F84063
1 changed files with 44 additions and 10 deletions

View File

@ -103,6 +103,17 @@
android:paddingTop="16dp" android:paddingTop="16dp"
android:paddingEnd="32dp"> android:paddingEnd="32dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical">
<TextView <TextView
android:id="@+id/now_playing_details_title" android:id="@+id/now_playing_details_title"
android:layout_width="match_parent" android:layout_width="match_parent"
@ -117,6 +128,29 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
tools:text="Muse" /> tools:text="Muse" />
</LinearLayout>
<ImageButton
android:id="@+id/now_playing_details_favorite"
style="@style/IconButton"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_margin="8dp"
android:contentDescription="@string/alt_album_cover"
android:src="@drawable/favorite" />
<ImageButton
android:id="@+id/now_playing_details_info"
style="@style/IconButton"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_margin="8dp"
android:contentDescription="@string/alt_track_info"
android:src="@drawable/more"
android:tint="@color/controlForeground" />
</LinearLayout>
<SeekBar <SeekBar
android:id="@+id/now_playing_details_progress" android:id="@+id/now_playing_details_progress"
android:layout_width="match_parent" android:layout_width="match_parent"