2018-11-05 19:23:07 +05:30
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2019-11-08 21:08:34 +05:30
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2019-06-04 23:48:27 +05:30
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2018-11-05 19:23:07 +05:30
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
2019-11-08 21:08:34 +05:30
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/playAction"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/action_play_all"
|
2020-02-22 17:40:12 +05:30
|
|
|
android:layout_marginStart="4dp"
|
|
|
|
android:layout_marginEnd="4dp"
|
2020-01-05 23:52:21 +05:30
|
|
|
app:backgroundTint="?attr/colorSurface"
|
2019-11-08 21:08:34 +05:30
|
|
|
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-01-14 17:47:22 +05:30
|
|
|
|
2019-11-08 21:08:34 +05:30
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/shuffleAction"
|
|
|
|
android:layout_width="0dp"
|
2020-02-22 17:40:12 +05:30
|
|
|
android:layout_marginStart="4dp"
|
|
|
|
android:layout_marginEnd="4dp"
|
2019-11-08 21:08:34 +05:30
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/shuffle"
|
2020-01-05 23:52:21 +05:30
|
|
|
app:backgroundTint="?attr/colorSurface"
|
2019-11-08 21:08:34 +05:30
|
|
|
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 23:48:27 +05:30
|
|
|
|
2020-01-28 22:30:28 +05:30
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
|
|
android:id="@+id/albumTitle"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:padding="12dp"
|
|
|
|
android:text="@string/albums"
|
2020-02-17 20:38:20 +05:30
|
|
|
android:textAppearance="@style/TextViewHeadline6"
|
2020-01-28 22:30:28 +05:30
|
|
|
android:textStyle="bold"
|
|
|
|
app:layout_constrainedWidth="true"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/playAction" />
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:id="@+id/albumRecyclerView"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:nestedScrollingEnabled="false"
|
2020-02-22 17:40:12 +05:30
|
|
|
android:overScrollMode="never"
|
2020-01-28 22:30:28 +05:30
|
|
|
app:barrierDirection="bottom"
|
|
|
|
app:layoutManager="androidx.recyclerview.widget.GridLayoutManager"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/albumTitle"
|
|
|
|
tools:itemCount="3"
|
|
|
|
tools:listitem="@layout/item_album_card"
|
|
|
|
tools:spanCount="3" />
|
|
|
|
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
|
|
android:id="@+id/songTitle"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:padding="16dp"
|
|
|
|
android:text="@string/songs"
|
2020-02-17 20:38:20 +05:30
|
|
|
android:textAppearance="@style/TextViewHeadline6"
|
2020-01-28 22:30:28 +05:30
|
|
|
android:textStyle="bold"
|
|
|
|
app:layout_constrainedWidth="true"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/albumRecyclerView" />
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:id="@+id/recyclerView"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:nestedScrollingEnabled="false"
|
2020-02-22 17:40:12 +05:30
|
|
|
android:overScrollMode="never"
|
2020-01-28 22:30:28 +05:30
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/songTitle"
|
2020-02-17 20:38:20 +05:30
|
|
|
tools:listitem="@layout/item_song" />
|
2020-01-28 22:30:28 +05:30
|
|
|
|
2019-09-28 23:22:49 +05:30
|
|
|
<com.google.android.material.textview.MaterialTextView
|
2018-12-04 21:04:26 +05:30
|
|
|
android:id="@+id/biographyTitle"
|
2020-01-28 22:30:28 +05:30
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:padding="16dp"
|
2018-11-05 19:23:07 +05:30
|
|
|
android:text="@string/biography"
|
2020-02-17 20:38:20 +05:30
|
|
|
android:textAppearance="@style/TextViewHeadline6"
|
2020-01-28 22:30:28 +05:30
|
|
|
android:textStyle="bold"
|
2018-11-05 19:23:07 +05:30
|
|
|
android:visibility="gone"
|
2020-01-28 22:30:28 +05:30
|
|
|
app:layout_constrainedWidth="true"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2019-11-08 21:08:34 +05:30
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2020-01-28 22:30:28 +05:30
|
|
|
app:layout_constraintTop_toBottomOf="@id/recyclerView"
|
2018-11-05 19:23:07 +05:30
|
|
|
tools:visibility="visible" />
|
|
|
|
|
2020-01-28 22:30:28 +05:30
|
|
|
|
2019-09-28 23:22:49 +05:30
|
|
|
<com.google.android.material.textview.MaterialTextView
|
2018-12-04 21:04:26 +05:30
|
|
|
android:id="@+id/biographyText"
|
2019-06-04 23:48:27 +05:30
|
|
|
style="@style/TextAppearance.MaterialComponents.Body1"
|
2018-11-05 19:23:07 +05:30
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="end"
|
2019-01-28 16:15:51 +05:30
|
|
|
android:lineSpacingExtra="5dp"
|
2019-06-04 23:48:27 +05:30
|
|
|
android:maxLines="4"
|
2018-11-05 19:23:07 +05:30
|
|
|
android:padding="16dp"
|
|
|
|
android:visibility="gone"
|
2020-01-28 22:30:28 +05:30
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2019-11-08 21:08:34 +05:30
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/biographyTitle"
|
2019-09-28 23:22:49 +05:30
|
|
|
tools:text="@string/bug_report_summary"
|
2018-11-05 19:23:07 +05:30
|
|
|
tools:visibility="visible" />
|
|
|
|
|
2019-09-28 23:22:49 +05:30
|
|
|
<com.google.android.material.textview.MaterialTextView
|
2020-01-28 22:30:28 +05:30
|
|
|
android:id="@+id/listenersLabel"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:text="@string/listeners_label"
|
|
|
|
android:textAppearance="@style/TextViewSubtitle1"
|
|
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
|
|
android:textStyle="bold"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constrainedWidth="true"
|
2019-11-08 21:08:34 +05:30
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2020-01-28 22:30:28 +05:30
|
|
|
app:layout_constraintTop_toBottomOf="@id/biographyText"
|
|
|
|
tools:visibility="visible" />
|
2018-11-05 19:23:07 +05:30
|
|
|
|
2020-01-28 22:30:28 +05:30
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
|
|
android:id="@+id/scrobblesLabel"
|
|
|
|
android:layout_width="0dp"
|
2018-11-05 19:23:07 +05:30
|
|
|
android:layout_height="wrap_content"
|
2020-01-28 22:30:28 +05:30
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:layout_marginEnd="12dp"
|
|
|
|
android:text="@string/scrobbles_label"
|
|
|
|
android:textAppearance="@style/TextViewSubtitle1"
|
|
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
|
|
android:textStyle="bold"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constrainedWidth="true"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/listenersLabel"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/biographyText"
|
|
|
|
tools:visibility="visible" />
|
2018-11-05 19:23:07 +05:30
|
|
|
|
2019-09-28 23:22:49 +05:30
|
|
|
<com.google.android.material.textview.MaterialTextView
|
2020-01-28 22:30:28 +05:30
|
|
|
android:id="@+id/listeners"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:textAppearance="@style/TextViewBody2"
|
|
|
|
android:textColor="?android:attr/textColorTertiary"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constrainedWidth="true"
|
|
|
|
app:layout_constraintEnd_toEndOf="@id/listenersLabel"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/listenersLabel"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/listenersLabel"
|
|
|
|
tools:text="100000"
|
|
|
|
tools:visibility="visible" />
|
2018-11-05 19:23:07 +05:30
|
|
|
|
2020-01-28 22:30:28 +05:30
|
|
|
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
|
|
android:id="@+id/scrobbles"
|
|
|
|
android:layout_width="0dp"
|
2018-11-05 19:23:07 +05:30
|
|
|
android:layout_height="wrap_content"
|
2020-01-28 22:30:28 +05:30
|
|
|
android:textAppearance="@style/TextViewBody2"
|
|
|
|
android:textColor="?android:attr/textColorTertiary"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constrainedWidth="true"
|
|
|
|
app:layout_constraintEnd_toEndOf="@id/scrobblesLabel"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/scrobblesLabel"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/scrobblesLabel"
|
|
|
|
tools:text="100000"
|
|
|
|
tools:visibility="visible" />
|
2018-11-05 19:23:07 +05:30
|
|
|
|
2018-11-13 09:00:08 +05:30
|
|
|
<Space
|
|
|
|
android:layout_width="match_parent"
|
2019-11-08 21:08:34 +05:30
|
|
|
android:layout_height="72dp"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2020-01-28 22:30:28 +05:30
|
|
|
app:layout_constraintTop_toBottomOf="@id/listeners" />
|
2019-11-08 21:08:34 +05:30
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|