79 lines
2.7 KiB
XML
79 lines
2.7 KiB
XML
|
<?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:id="@+id/cover_background"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:baselineAligned="false"
|
||
|
android:gravity="center_vertical"
|
||
|
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>
|
||
|
|
||
|
</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>
|