funkwhale-app-android/app/src/main/res/layout/fragment_albums_grid.xml

60 lines
2.2 KiB
XML
Raw Normal View History

2019-08-19 16:50:33 +02:00
<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
2019-08-19 16:50:33 +02:00
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
2019-08-19 16:50:33 +02:00
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
android:id="@+id/swiper"
style="@style/AppTheme.Fragment"
2019-08-19 16:50:33 +02:00
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipChildren="false"
android:clipToPadding="false"
app:layout_behavior="@string/appbar_scrolling_view_behavior">
2019-08-19 16:50:33 +02:00
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/albums"
2019-08-19 16:50:33 +02:00
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:itemCount="10"
tools:layoutManager="androidx.recyclerview.widget.GridLayoutManager"
tools:listitem="@layout/row_album_grid"
tools:spanCount="3" />
2019-08-19 16:50:33 +02:00
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
<com.google.android.material.appbar.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@android:color/transparent">
<com.google.android.material.appbar.CollapsingToolbarLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
app:layout_scrollFlags="scroll|exitUntilCollapsed">
<LinearLayout
2019-08-19 16:50:33 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
style="@style/AppTheme.Title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="16dp"
android:layout_marginBottom="16dp"
android:text="@string/albums" />
</LinearLayout>
2019-08-19 16:50:33 +02:00
</com.google.android.material.appbar.CollapsingToolbarLayout>
2019-08-19 16:50:33 +02:00
</com.google.android.material.appbar.AppBarLayout>
2019-08-19 16:50:33 +02:00
</androidx.coordinatorlayout.widget.CoordinatorLayout>