2019-08-19 16:50:33 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout 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:id="@+id/swiper"
|
|
|
|
style="@style/AppTheme.Fragment"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="?attr/colorSurface"
|
|
|
|
android:clipChildren="false"
|
|
|
|
android:clipToPadding="false">
|
|
|
|
|
|
|
|
<androidx.core.widget.NestedScrollView
|
|
|
|
android:id="@+id/scroller"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:clipChildren="false"
|
|
|
|
android:clipToPadding="false"
|
|
|
|
android:fillViewport="true">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:clipChildren="false"
|
|
|
|
android:clipToPadding="false"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="?attr/colorSurface"
|
|
|
|
android:elevation="1dp">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/cover"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="250dp"
|
2020-06-14 00:42:45 +02:00
|
|
|
android:layout_margin="8dp"
|
2019-10-21 19:49:48 +02:00
|
|
|
android:contentDescription="@string/alt_artist_art"
|
2019-08-19 16:50:33 +02:00
|
|
|
android:scaleType="centerCrop"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:layout_constraintVertical_bias="0"
|
|
|
|
tools:src="@tools:sample/avatars" />
|
|
|
|
|
2020-06-24 16:04:36 +02:00
|
|
|
<com.google.android.material.button.MaterialButton
|
2020-06-02 18:50:46 +02:00
|
|
|
android:id="@+id/play"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:backgroundTint="@color/colorPrimary"
|
2020-06-24 16:04:36 +02:00
|
|
|
android:paddingHorizontal="16dp"
|
|
|
|
android:paddingVertical="8dp"
|
2020-06-02 18:50:46 +02:00
|
|
|
android:text="@string/playback_shuffle"
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
app:icon="@drawable/play"
|
2020-06-24 16:04:36 +02:00
|
|
|
app:iconSize="24dp"
|
2020-06-02 18:50:46 +02:00
|
|
|
app:iconTint="@android:color/white"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/cover"
|
|
|
|
app:layout_constraintLeft_toLeftOf="@id/cover"
|
|
|
|
app:layout_constraintRight_toRightOf="@id/cover"
|
2020-06-24 16:04:36 +02:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/cover"
|
|
|
|
app:rippleColor="@color/ripple" />
|
2020-06-02 18:50:46 +02:00
|
|
|
|
2019-08-19 16:50:33 +02:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center_vertical"
|
2020-06-02 18:50:46 +02:00
|
|
|
android:orientation="horizontal">
|
2019-08-19 16:50:33 +02:00
|
|
|
|
2020-06-02 18:50:46 +02:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="0dp"
|
2019-08-19 16:50:33 +02:00
|
|
|
android:layout_height="wrap_content"
|
2020-06-02 18:50:46 +02:00
|
|
|
android:layout_weight="1"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
android:text="@string/albums"
|
|
|
|
android:textAllCaps="true"
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/artist"
|
|
|
|
style="@style/AppTheme.Title"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
android:layout_marginBottom="16dp"
|
|
|
|
tools:text="Muse" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
2019-08-19 16:50:33 +02:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:id="@+id/albums"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:clipChildren="false"
|
|
|
|
android:clipToPadding="false"
|
|
|
|
tools:itemCount="10"
|
|
|
|
tools:listitem="@layout/row_album" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</androidx.core.widget.NestedScrollView>
|
|
|
|
|
|
|
|
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|