Android-MultiStateListView
Android-MultiStateListView copied to clipboard
Swipe to refresh hides error layout
Hi, When I implement your library for showing loading,error states in my listview and I combine it along with swipe to refresh functionality. The listview data is shown properly when the data is available. But when the listview is empty or loading, it simply hides the layout behind swipe to refresh layout. Do you have any suggestion on this one ? Thanks in advance.
Here's a piece of my code :
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:custom="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:background="@android:color/white"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.yalantis.phoenix.PullToRefreshView
android:id="@+id/pull_to_refresh"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<com.jensdriller.libs.multistatelistview.MultiStateListView
android:id="@+id/shoppingList"
android:layout_width="match_parent"
android:layout_height="match_parent"
custom:emptyView="@layout/list_empty"
custom:errorView="@layout/list_error"
custom:loadingView="@layout/list_loading"
custom:layout_constraintBottom_toBottomOf="@+id/constraintLayout3"
custom:layout_constraintLeft_toLeftOf="@+id/constraintLayout3"
custom:layout_constraintRight_toRightOf="@+id/constraintLayout3"
custom:layout_constraintTop_toTopOf="@+id/constraintLayout3"
tools:layout_constraintBottom_creator="1"
tools:layout_constraintLeft_creator="1"
tools:layout_constraintRight_creator="1"
tools:layout_constraintTop_creator="1" />
</com.yalantis.phoenix.PullToRefreshView>
</FrameLayout>
The above is my layout file.