habitica-android/Habitica/res/layout/fragment_refresh_recyclerview.xml

49 lines
2.1 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
2018-11-06 15:11:02 +00:00
<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"
2017-11-14 20:04:38 +00:00
android:id="@+id/refreshLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
2020-01-10 14:58:38 +00:00
app:layout_behavior="@string/appbar_scrolling_view_behavior"
android:background="@color/gray_700">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.habitrpg.android.habitica.ui.helpers.RecyclerViewEmptySupport
android:id="@+id/recyclerView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scrollbarSize="3dp"
android:scrollbarThumbVertical="@color/scrollbarThumb"
android:scrollbars="vertical"
android:clipToPadding="false" />
<LinearLayout
android:id="@+id/emptyView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
2020-01-15 17:32:17 +00:00
android:layout_marginTop="60dp"
2020-01-10 14:58:38 +00:00
android:visibility="gone"
2020-01-15 17:32:17 +00:00
tools:visibility="visible"
style="@style/EmptyView">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2017-11-14 20:04:38 +00:00
android:id="@+id/emptyViewTitle"
tools:text="No Items"
2020-01-10 14:58:38 +00:00
android:gravity="center"
android:textSize="@dimen/card_medium_text"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2017-11-14 20:04:38 +00:00
android:id="@+id/emptyViewDescription"
2020-01-10 14:58:38 +00:00
android:gravity="center"
tools:text="No Items" />
</LinearLayout>
</FrameLayout>
2018-11-06 15:11:02 +00:00
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>