PlayerAndroid/app/src/main/res/layout/fragment_classic_player.xml

147 lines
6.5 KiB
XML
Raw Normal View History

2020-05-03 19:24:11 +00:00
<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
2020-05-13 23:11:58 +00:00
android:layout_height="match_parent"
android:background="?attr/colorSurface">
2020-05-03 19:24:11 +00:00
2020-05-11 22:24:09 +00:00
<androidx.constraintlayout.widget.ConstraintLayout
2020-05-03 19:24:11 +00:00
android:id="@+id/playerContainer"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
2020-10-02 18:05:09 +00:00
<FrameLayout
android:id="@+id/albumCoverContainer"
2020-05-11 22:24:09 +00:00
android:layout_width="0dp"
android:layout_height="0dp"
app:layout_constraintDimensionRatio="1:1"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
2020-10-02 18:05:09 +00:00
app:layout_constraintTop_toTopOf="parent">
<androidx.fragment.app.FragmentContainerView
2020-10-02 18:05:09 +00:00
android:id="@+id/playerAlbumCoverFragment"
android:name="code.name.monkey.retromusic.fragments.player.PlayerAlbumCoverFragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:layout="@layout/fragment_album_cover" />
</FrameLayout>
2020-05-03 19:24:11 +00:00
2020-05-11 22:24:09 +00:00
<View
android:layout_width="0dp"
android:layout_height="0dp"
2020-05-11 22:24:09 +00:00
android:background="@drawable/shadow_down_strong"
2020-05-14 10:25:57 +00:00
app:layout_constraintBottom_toBottomOf="@id/toolbarContainer"
2020-05-11 22:24:09 +00:00
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
2020-05-14 10:25:57 +00:00
app:layout_constraintTop_toTopOf="@id/toolbarContainer" />
2020-05-11 22:24:09 +00:00
<LinearLayout
2020-05-14 10:25:57 +00:00
android:id="@+id/toolbarContainer"
2020-05-11 22:24:09 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<code.name.monkey.retromusic.views.StatusBarView
android:id="@+id/status_bar"
android:layout_width="match_parent"
android:layout_height="@dimen/status_bar_padding" />
2020-05-11 22:24:09 +00:00
<com.google.android.material.appbar.MaterialToolbar
android:id="@+id/playerToolbar"
style="@style/Toolbar"
android:layout_gravity="bottom"
2020-07-19 21:00:30 +00:00
android:navigationIcon="@drawable/ic_keyboard_arrow_down_black"
app:navigationIcon="@drawable/ic_keyboard_arrow_down_black" />
2020-05-11 22:24:09 +00:00
</LinearLayout>
2020-05-13 23:11:58 +00:00
2020-05-14 15:27:42 +00:00
<include
android:id="@+id/playerControlsContainer"
layout="@layout/fragment_classic_controls"
2020-05-13 23:11:58 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-10-02 18:05:09 +00:00
android:elevation="24dp"
2020-05-13 23:11:58 +00:00
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
2020-10-02 18:05:09 +00:00
app:layout_constraintTop_toBottomOf="@id/albumCoverContainer" />
2020-05-11 22:24:09 +00:00
</androidx.constraintlayout.widget.ConstraintLayout>
2020-05-03 19:24:11 +00:00
<com.google.android.material.card.MaterialCardView
android:id="@+id/playerQueueSheet"
android:layout_width="match_parent"
2020-05-11 09:51:22 +00:00
android:layout_height="match_parent"
2020-05-03 19:24:11 +00:00
android:gravity="bottom"
style="@style/BottomSheetStyle"
2020-10-02 18:05:09 +00:00
android:theme="@style/TopCornerCardView"
2020-05-03 19:24:11 +00:00
app:behavior_hideable="false"
2020-10-02 18:05:09 +00:00
app:cardElevation="24dp"
app:layout_behavior="code.name.monkey.retromusic.RetroBottomSheetBehavior"
tools:peekHeight="0dp">
2020-05-03 19:24:11 +00:00
<LinearLayout
android:layout_width="match_parent"
2020-05-11 09:51:22 +00:00
android:layout_height="match_parent"
android:clickable="false"
2020-05-03 19:24:11 +00:00
android:orientation="vertical">
2020-05-13 23:11:58 +00:00
<com.google.android.material.textview.MaterialTextView
2020-05-14 15:27:42 +00:00
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2021-09-16 12:59:31 +00:00
android:clickable="true"
2020-05-14 15:27:42 +00:00
android:ellipsize="marquee"
android:focusable="true"
android:freezesText="true"
android:marqueeRepeatLimit="marquee_forever"
android:paddingHorizontal="16dp"
android:paddingTop="16dp"
android:scrollHorizontally="true"
android:singleLine="true"
2020-10-02 18:05:09 +00:00
android:textAppearance="@style/TextViewHeadline6"
2020-05-14 15:27:42 +00:00
android:textColor="?android:attr/textColorPrimary"
android:textStyle="bold"
tools:text="@tools:sample/lorem/random" />
<com.google.android.material.textview.MaterialTextView
android:id="@+id/text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clickable="true"
2021-09-16 12:59:31 +00:00
android:ellipsize="end"
android:focusable="true"
2021-09-16 12:59:31 +00:00
android:maxLines="1"
2020-05-14 15:27:42 +00:00
android:paddingHorizontal="16dp"
android:textAppearance="@style/TextViewBody1"
android:textColor="?android:attr/textColorSecondary"
app:layout_constrainedWidth="true"
app:layout_constraintBottom_toTopOf="@+id/songInfo"
app:layout_constraintTop_toBottomOf="@+id/titleContainer"
tools:text="@tools:sample/lorem/random" />
<com.google.android.material.textview.MaterialTextView
2020-05-13 23:11:58 +00:00
android:id="@+id/player_queue_sub_header"
2020-05-03 19:24:11 +00:00
android:layout_width="match_parent"
2020-05-13 23:11:58 +00:00
android:layout_height="?attr/listPreferredItemHeightSmall"
android:gravity="center_vertical"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:text="@string/up_next"
android:textAppearance="@style/TextAppearance.AppCompat.Body2"
android:textColor="?android:attr/textColorSecondary" />
2020-05-03 19:24:11 +00:00
2020-05-13 23:11:58 +00:00
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerView"
2020-05-03 19:24:11 +00:00
android:layout_width="match_parent"
2020-05-11 09:51:22 +00:00
android:layout_height="match_parent"
tools:listitem="@layout/item_list" />
2020-05-03 19:24:11 +00:00
</LinearLayout>
2020-05-13 23:11:58 +00:00
2020-05-03 19:24:11 +00:00
</com.google.android.material.card.MaterialCardView>
</androidx.coordinatorlayout.widget.CoordinatorLayout>