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

103 lines
4.3 KiB
XML
Raw Normal View History

2018-11-05 13:53:07 +00:00
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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"
2018-11-05 13:53:07 +00:00
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<androidx.constraintlayout.widget.ConstraintLayout
2019-01-14 12:17:22 +00:00
android:layout_width="match_parent"
2019-06-04 18:18:27 +00:00
android:layout_height="wrap_content"
android:paddingStart="8dp"
android:paddingEnd="8dp">
<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-09-28 17:52:49 +00:00
android:layout_marginStart="@dimen/button_margin_horizontal"
android:layout_marginEnd="@dimen/button_margin_horizontal"
android:paddingTop="@dimen/button_padding_vertical"
android:paddingBottom="@dimen/button_padding_vertical"
android:text="@string/action_play_all"
2019-06-04 18:18:27 +00:00
android:textAllCaps="false"
android:textAppearance="@style/TextViewNormal"
2019-06-04 18:18:27 +00:00
app:cornerRadius="6dp"
app:icon="@drawable/ic_play_arrow_white_24dp"
app:iconGravity="textStart"
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
tools:backgroundTint="@color/md_grey_900" />
2019-01-14 12:17:22 +00:00
2019-06-04 18:18:27 +00:00
<com.google.android.material.button.MaterialButton
android:id="@+id/shuffleAction"
android:layout_width="0dp"
2019-06-04 18:18:27 +00:00
android:layout_height="wrap_content"
2019-09-28 17:52:49 +00:00
android:layout_marginStart="@dimen/button_margin_horizontal"
android:layout_marginEnd="@dimen/button_margin_horizontal"
android:paddingTop="@dimen/button_padding_vertical"
android:paddingBottom="@dimen/button_padding_vertical"
2019-06-04 18:18:27 +00:00
android:text="@string/shuffle"
android:textAllCaps="false"
android:textAppearance="@style/TextViewNormal"
2019-06-04 18:18:27 +00:00
app:cornerRadius="6dp"
app:icon="@drawable/ic_shuffle_white_24dp"
app:iconGravity="textStart"
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
tools:backgroundTint="@color/md_grey_900" />
</androidx.constraintlayout.widget.ConstraintLayout>
2019-01-14 12:17:22 +00:00
2019-09-28 17:52:49 +00:00
<com.google.android.material.textview.MaterialTextView
2018-12-04 15:34:26 +00:00
android:id="@+id/biographyTitle"
2018-11-05 13:53:07 +00:00
style="@style/SubTitleTextAppearance"
android:text="@string/biography"
android:visibility="gone"
tools:visibility="visible" />
2019-09-28 17:52:49 +00:00
<com.google.android.material.textview.MaterialTextView
2018-12-04 15:34:26 +00:00
android:id="@+id/biographyText"
2019-06-04 18:18:27 +00:00
style="@style/TextAppearance.MaterialComponents.Body1"
2018-11-05 13:53:07 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ellipsize="end"
2019-01-28 10:45:51 +00:00
android:lineSpacingExtra="5dp"
2019-06-04 18:18:27 +00:00
android:maxLines="4"
2018-11-05 13:53:07 +00:00
android:padding="16dp"
android:visibility="gone"
2019-09-28 17:52:49 +00:00
tools:text="@string/bug_report_summary"
2018-11-05 13:53:07 +00:00
tools:visibility="visible" />
2019-09-28 17:52:49 +00:00
<com.google.android.material.textview.MaterialTextView
2018-12-04 15:34:26 +00:00
android:id="@+id/albumTitle"
2018-11-05 13:53:07 +00:00
style="@style/SubTitleTextAppearance"
android:text="@string/albums" />
<androidx.recyclerview.widget.RecyclerView
2018-12-04 15:34:26 +00:00
android:id="@+id/albumRecyclerView"
2018-11-05 13:53:07 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:nestedScrollingEnabled="false" />
2019-09-28 17:52:49 +00:00
<com.google.android.material.textview.MaterialTextView
2018-12-04 15:34:26 +00:00
android:id="@+id/songTitle"
2018-11-05 13:53:07 +00:00
style="@style/SubTitleTextAppearance"
android:text="@string/songs" />
<androidx.recyclerview.widget.RecyclerView
2018-12-04 15:34:26 +00:00
android:id="@+id/recyclerView"
2018-11-05 13:53:07 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:nestedScrollingEnabled="false" />
2018-11-13 03:30:08 +00:00
<Space
android:layout_width="match_parent"
android:layout_height="72dp" />
2018-11-05 13:53:07 +00:00
</LinearLayout>