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

90 lines
3.9 KiB
XML
Raw Normal View History

2018-11-05 13:53:07 +00:00
<?xml version="1.0" encoding="utf-8"?>
2019-11-08 15:38:34 +00:00
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
2019-06-04 18:18:27 +00:00
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
2018-11-05 13:53:07 +00:00
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
2019-11-08 15:38:34 +00:00
<com.google.android.material.button.MaterialButton
android:id="@+id/playAction"
android:layout_width="0dp"
2019-06-04 18:18:27 +00:00
android:layout_height="wrap_content"
2019-11-08 15:38:34 +00:00
android:layout_marginStart="@dimen/button_margin_horizontal"
android:layout_marginTop="8dp"
android:layout_marginEnd="@dimen/button_margin_horizontal"
android:layout_marginBottom="8dp"
android:text="@string/action_play_all"
app:icon="@drawable/ic_play_arrow_white_24dp"
app:layout_constraintEnd_toStartOf="@+id/shuffleAction"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
2019-06-04 18:18:27 +00:00
2019-11-08 15:38:34 +00:00
<com.google.android.material.button.MaterialButton
android:id="@+id/shuffleAction"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/button_margin_horizontal"
android:layout_marginTop="8dp"
android:layout_marginEnd="@dimen/button_margin_horizontal"
android:layout_marginBottom="8dp"
android:text="@string/shuffle"
app:icon="@drawable/ic_shuffle_white_24dp"
app:layout_constraintBottom_toBottomOf="@+id/playAction"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toEndOf="@+id/playAction"
app:layout_constraintTop_toTopOf="@+id/playAction" />
2019-06-04 18:18:27 +00:00
2019-09-28 17:52:49 +00:00
<com.google.android.material.textview.MaterialTextView
2018-11-30 01:06:16 +00:00
android:id="@+id/songTitle"
2018-11-05 13:53:07 +00:00
style="@style/SubTitleTextAppearance"
2019-11-08 15:38:34 +00:00
android:layout_width="0dp"
android:layout_height="wrap_content"
android:text="@string/songs"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/playAction" />
2018-11-05 13:53:07 +00:00
<androidx.recyclerview.widget.RecyclerView
2018-11-30 01:06:16 +00:00
android:id="@+id/recyclerView"
2018-11-05 13:53:07 +00:00
android:layout_width="match_parent"
2018-11-13 03:30:08 +00:00
android:layout_height="wrap_content"
2019-09-28 17:52:49 +00:00
android:nestedScrollingEnabled="false"
2019-11-08 15:38:34 +00:00
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/songTitle"
2019-09-28 17:52:49 +00:00
tools:listitem="@layout/item_song" />
2018-11-05 13:53:07 +00:00
2019-09-28 17:52:49 +00:00
<com.google.android.material.textview.MaterialTextView
2018-11-30 01:06:16 +00:00
android:id="@+id/moreTitle"
2018-11-05 13:53:07 +00:00
style="@style/SubTitleTextAppearance"
2019-11-08 15:38:34 +00:00
android:layout_width="0dp"
2019-09-28 17:52:49 +00:00
android:visibility="gone"
2019-11-08 15:38:34 +00:00
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/recyclerView"
2019-09-28 17:52:49 +00:00
tools:text="More by Artist"
tools:visibility="visible" />
2018-11-05 13:53:07 +00:00
<androidx.recyclerview.widget.RecyclerView
2018-11-30 01:06:16 +00:00
android:id="@+id/moreRecyclerView"
2018-11-05 13:53:07 +00:00
android:layout_width="match_parent"
2018-11-13 03:30:08 +00:00
android:layout_height="wrap_content"
2018-11-05 13:53:07 +00:00
android:nestedScrollingEnabled="false"
2019-09-28 17:52:49 +00:00
android:visibility="gone"
2019-11-08 15:38:34 +00:00
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/moreTitle"
2019-09-28 17:52:49 +00:00
tools:listitem="@layout/item_album_card"
tools:visibility="visible" />
2018-11-13 03:30:08 +00:00
<Space
android:layout_width="match_parent"
2019-11-08 15:38:34 +00:00
android:layout_height="72dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/moreRecyclerView" />
</androidx.constraintlayout.widget.ConstraintLayout>