2020-12-05 21:31:12 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2021-12-23 17:10:31 +01:00
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2020-12-05 21:31:12 +01:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2021-12-20 18:15:09 +01:00
|
|
|
android:id="@+id/player_body_bottom_sheet_layout"
|
2020-12-05 21:31:12 +01:00
|
|
|
android:layout_width="match_parent"
|
2021-12-23 17:10:31 +01:00
|
|
|
android:layout_height="match_parent"
|
2021-12-19 17:11:12 +01:00
|
|
|
android:background="@color/colorPrimary"
|
2021-12-23 17:10:31 +01:00
|
|
|
android:orientation="vertical">
|
2020-12-05 21:31:12 +01:00
|
|
|
|
2021-12-06 13:26:27 +01:00
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
|
|
|
android:id="@+id/appbar"
|
|
|
|
|
android:layout_width="match_parent"
|
2020-12-05 21:31:12 +01:00
|
|
|
android:layout_height="wrap_content"
|
2021-12-06 13:26:27 +01:00
|
|
|
android:theme="@style/ThemeOverlay.MaterialComponents.Dark.ActionBar"
|
2021-12-23 17:10:31 +01:00
|
|
|
app:elevation="0dp">
|
2021-12-06 13:26:27 +01:00
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.Toolbar
|
|
|
|
|
android:id="@+id/toolbar"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:background="@color/colorPrimary"
|
|
|
|
|
app:popupTheme="@style/ThemeOverlay.MaterialComponents.Light">
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/player_move_down_bottom_sheet"
|
|
|
|
|
android:layout_width="32dp"
|
|
|
|
|
android:layout_height="32dp"
|
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
|
android:layout_marginEnd="8dp"
|
2021-12-19 16:48:43 +01:00
|
|
|
android:background="@drawable/ic_bottom_sheet_down"
|
|
|
|
|
android:foreground="?android:attr/selectableItemBackgroundBorderless" />
|
2021-12-06 13:26:27 +01:00
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
style="@style/ToolbarTextView"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:paddingStart="8dp"
|
|
|
|
|
android:paddingEnd="8dp"
|
|
|
|
|
android:text="@string/player_bottom_sheet_title" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
</androidx.appcompat.widget.Toolbar>
|
|
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
2020-12-05 21:31:12 +01:00
|
|
|
|
2021-12-23 17:10:31 +01:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
|
|
<androidx.viewpager2.widget.ViewPager2
|
|
|
|
|
android:id="@+id/player_song_cover_view_pager"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="0dp"
|
|
|
|
|
app:layout_constraintDimensionRatio="H,1:1"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
2020-12-05 21:31:12 +01:00
|
|
|
|
2021-04-12 12:43:34 +02:00
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/player_big_timer"
|
2020-12-05 21:31:12 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2021-12-29 10:12:26 +01:00
|
|
|
android:layout_marginTop="22dp"
|
2021-12-23 17:10:31 +01:00
|
|
|
android:orientation="horizontal">
|
2021-04-12 12:43:34 +02:00
|
|
|
|
|
|
|
|
<TextView
|
2021-12-29 10:12:26 +01:00
|
|
|
android:id="@+id/exo_position"
|
2021-04-12 12:43:34 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:layout_gravity="center"
|
|
|
|
|
android:layout_marginLeft="24dp"
|
2021-12-29 10:12:26 +01:00
|
|
|
android:paddingTop="4dp"
|
2021-04-12 12:43:34 +02:00
|
|
|
android:text="@string/label_placeholder"
|
|
|
|
|
android:textColor="@color/titleTextColor"
|
|
|
|
|
android:textSize="12sp" />
|
|
|
|
|
|
2021-12-29 10:12:26 +01:00
|
|
|
<androidx.media3.ui.DefaultTimeBar
|
|
|
|
|
android:id="@id/exo_progress"
|
2021-04-12 12:43:34 +02:00
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="center"
|
2021-12-29 10:12:26 +01:00
|
|
|
android:layout_marginLeft="4dp"
|
|
|
|
|
android:layout_marginRight="4dp"
|
2021-04-24 11:45:53 +02:00
|
|
|
android:layout_weight="1"
|
2021-12-29 10:12:26 +01:00
|
|
|
app:bar_height="2dp"
|
|
|
|
|
app:buffered_color="@color/seekBarBufferedColor"
|
|
|
|
|
app:played_color="@color/seekBarPlayedColor"
|
|
|
|
|
app:scrubber_color="@color/seekBarPlayedColor"
|
|
|
|
|
app:scrubber_dragged_size="8dp"
|
|
|
|
|
app:unplayed_color="@color/seekBarUnPlayedColor" />
|
2021-04-12 12:43:34 +02:00
|
|
|
|
|
|
|
|
<TextView
|
2021-12-29 10:12:26 +01:00
|
|
|
android:id="@+id/exo_duration"
|
2021-04-12 12:43:34 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:layout_gravity="center"
|
|
|
|
|
android:layout_marginRight="24dp"
|
2021-12-29 10:12:26 +01:00
|
|
|
android:paddingTop="4dp"
|
2021-04-12 12:43:34 +02:00
|
|
|
android:text="@string/label_placeholder"
|
|
|
|
|
android:textColor="@color/titleTextColor"
|
|
|
|
|
android:textSize="12sp" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
2021-12-23 17:10:31 +01:00
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
2020-12-05 21:31:12 +01:00
|
|
|
android:layout_height="wrap_content"
|
2021-12-23 17:10:31 +01:00
|
|
|
android:orientation="horizontal">
|
2020-12-08 11:12:44 +01:00
|
|
|
|
2021-12-23 17:10:31 +01:00
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/player_song_title_label"
|
|
|
|
|
style="@style/TitleTextView"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:paddingStart="24dp"
|
|
|
|
|
android:paddingEnd="24dp"
|
|
|
|
|
android:text="@string/label_placeholder" />
|
|
|
|
|
|
|
|
|
|
<ToggleButton
|
|
|
|
|
android:id="@+id/button_favorite"
|
|
|
|
|
android:layout_width="26dp"
|
|
|
|
|
android:layout_height="26dp"
|
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
|
android:layout_marginEnd="24dp"
|
|
|
|
|
android:background="@drawable/button_favorite_selector"
|
|
|
|
|
android:checked="false"
|
|
|
|
|
android:foreground="?android:attr/selectableItemBackgroundBorderless"
|
|
|
|
|
android:text=""
|
|
|
|
|
android:textOff=""
|
|
|
|
|
android:textOn="" />
|
|
|
|
|
</LinearLayout>
|
2020-12-05 21:31:12 +01:00
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/player_artist_name_label"
|
2021-04-24 11:45:53 +02:00
|
|
|
style="@style/SubheadTextView"
|
2021-12-20 18:15:09 +01:00
|
|
|
android:layout_width="wrap_content"
|
2020-12-05 21:31:12 +01:00
|
|
|
android:layout_height="wrap_content"
|
2020-12-08 11:12:44 +01:00
|
|
|
android:paddingStart="24dp"
|
|
|
|
|
android:paddingEnd="24dp"
|
2021-04-29 15:34:01 +02:00
|
|
|
android:paddingBottom="12dp"
|
2021-12-23 17:10:31 +01:00
|
|
|
android:text="@string/label_placeholder" />
|
2020-12-05 21:31:12 +01:00
|
|
|
|
2021-12-20 12:35:37 +01:00
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/player_music_command_sector"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2021-12-23 17:10:31 +01:00
|
|
|
android:orientation="horizontal">
|
2021-12-20 12:35:37 +01:00
|
|
|
|
|
|
|
|
<View
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="0.5dp"
|
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
|
android:layout_marginStart="18dp"
|
2021-12-21 15:48:55 +01:00
|
|
|
android:layout_marginEnd="18dp"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:background="@color/dividerColor" />
|
2021-12-20 12:35:37 +01:00
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
|
android:id="@+id/player_command_unfold_button"
|
|
|
|
|
android:layout_width="18dp"
|
|
|
|
|
android:layout_height="18dp"
|
|
|
|
|
android:background="@drawable/ic_unfold"
|
2021-12-21 15:48:55 +01:00
|
|
|
android:scaleType="fitCenter" />
|
2021-12-20 12:35:37 +01:00
|
|
|
|
|
|
|
|
<View
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="0.5dp"
|
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
|
android:layout_marginStart="18dp"
|
2021-12-21 15:48:55 +01:00
|
|
|
android:layout_marginEnd="18dp"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:background="@color/dividerColor" />
|
2021-12-20 12:35:37 +01:00
|
|
|
</LinearLayout>
|
2020-12-05 21:31:12 +01:00
|
|
|
|
2021-12-19 16:48:43 +01:00
|
|
|
<androidx.cardview.widget.CardView
|
2021-12-20 12:35:37 +01:00
|
|
|
android:id="@+id/player_command_cardview"
|
2021-12-19 16:48:43 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2021-12-19 17:11:12 +01:00
|
|
|
android:backgroundTint="@color/colorPrimary"
|
2021-12-22 16:22:01 +01:00
|
|
|
android:visibility="gone"
|
2021-12-23 17:10:31 +01:00
|
|
|
app:cardElevation="0dp">
|
2021-12-19 16:48:43 +01:00
|
|
|
|
2021-12-29 10:12:26 +01:00
|
|
|
<LinearLayout
|
2021-12-19 16:48:43 +01:00
|
|
|
android:layout_width="match_parent"
|
2021-12-20 12:35:37 +01:00
|
|
|
android:layout_height="wrap_content"
|
2021-12-29 10:12:26 +01:00
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:clipChildren="false"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
|
android:id="@+id/exo_prev"
|
|
|
|
|
android:layout_width="48dp"
|
|
|
|
|
android:layout_height="48dp"
|
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
|
android:layout_marginEnd="24dp"
|
|
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
|
|
|
android:scaleType="fitCenter"
|
|
|
|
|
app:srcCompat="@drawable/ic_skip_previous" />
|
|
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
|
android:id="@id/exo_play"
|
|
|
|
|
style="@style/ExoMediaButton.Play"
|
|
|
|
|
android:layout_width="48dp"
|
|
|
|
|
android:layout_height="48dp"
|
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
|
|
|
android:scaleType="fitCenter"
|
|
|
|
|
android:src="@drawable/ic_play" />
|
|
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
|
android:id="@id/exo_pause"
|
|
|
|
|
style="@style/ExoMediaButton.Pause"
|
|
|
|
|
android:layout_width="48dp"
|
|
|
|
|
android:layout_height="48dp"
|
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
|
|
|
android:scaleType="fitCenter"
|
|
|
|
|
android:src="@drawable/ic_pause" />
|
|
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
|
android:id="@+id/exo_next"
|
|
|
|
|
android:layout_width="48dp"
|
|
|
|
|
android:layout_height="48dp"
|
|
|
|
|
android:layout_marginStart="24dp"
|
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
|
|
|
android:scaleType="fitCenter"
|
|
|
|
|
app:srcCompat="@drawable/ic_skip_next" />
|
|
|
|
|
</LinearLayout>
|
2021-12-19 16:48:43 +01:00
|
|
|
|
|
|
|
|
<View
|
|
|
|
|
android:id="@+id/player_divider_bottom"
|
|
|
|
|
style="@style/Divider"
|
|
|
|
|
android:layout_marginStart="18dp"
|
2021-12-22 09:08:04 +01:00
|
|
|
android:layout_marginTop="12dp"
|
2021-12-29 10:12:26 +01:00
|
|
|
android:layout_marginEnd="18dp" />
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
2021-12-19 16:48:43 +01:00
|
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
|
|
2020-12-08 11:12:44 +01:00
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
|
android:id="@+id/player_queue_recycler_view"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:clipToPadding="false"
|
2021-04-29 15:34:01 +02:00
|
|
|
android:paddingTop="12dp"
|
2021-12-23 17:10:31 +01:00
|
|
|
android:paddingBottom="@dimen/global_padding_bottom" />
|
|
|
|
|
</LinearLayout>
|