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

112 lines
5.0 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-05-11 22:24:09 +00:00
<androidx.fragment.app.FragmentContainerView
android:id="@+id/playerAlbumCoverFragment"
android:name="code.name.monkey.retromusic.fragments.player.PlayerAlbumCoverFragment"
android:layout_width="0dp"
android:layout_height="0dp"
app:layout_constraintDimensionRatio="1:1"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
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"
app:layout_constraintBottom_toBottomOf="@id/dummy_statusbar_actionbar"
2020-05-11 22:24:09 +00:00
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@id/dummy_statusbar_actionbar" />
2020-05-11 22:24:09 +00:00
<LinearLayout
android:id="@+id/dummy_statusbar_actionbar"
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"
android:navigationIcon="@drawable/ic_keyboard_arrow_down_black_24dp"
app:navigationIcon="@drawable/ic_keyboard_arrow_down_black_24dp" />
</LinearLayout>
2020-05-13 23:11:58 +00:00
<com.google.android.material.card.MaterialCardView
android:id="@+id/playbackControlsFragmentContainer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:cardCornerRadius="0dp"
app:cardElevation="24dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/playerAlbumCoverFragment">
<include
android:id="@+id/playerControlsContainer"
layout="@layout/fragment_classic_controls"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</com.google.android.material.card.MaterialCardView>
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"
app:behavior_hideable="false"
app:cardCornerRadius="0dp"
2020-05-13 23:11:58 +00:00
app:cardElevation="24dp"
app:layout_behavior="code.name.monkey.retromusic.RetroBottomSheetBehavior">
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"
2020-05-13 23:11:58 +00:00
android:background="?attr/colorSurface"
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
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"
2020-05-13 23:11:58 +00:00
android:overScrollMode="never"
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>