Yalantis/Taurus

How to set empty view to the list?

khan-tm opened this issue · 3 comments

As we can set empty or error view to the ListView/RecyclerView in case of no data or error respectively, how can we set this type of view inside com.yalantis.taurus.PullToRefreshView. Because com.yalantis.taurus.PullToRefreshView do not supports two children.
So I can not do it like this...

<com.yalantis.taurus.PullToRefreshView
    android:id="@+id/pull_to_refresh"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    app:type="sun">

    <ListView
        android:id="@+id/list_view"
        android:divider="@null"
        android:dividerHeight="0dp"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />
    <TextView
        android:id="@+id/txt_empty_view"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />
</com.yalantis.taurus.PullToRefreshView>

Even following is also not working properly...

<com.yalantis.taurus.PullToRefreshView
    android:id="@+id/pull_to_refresh"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    app:type="sun">
    <FrameLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent" >
    <ListView
        android:id="@+id/list_view"
        android:divider="@null"
        android:dividerHeight="0dp"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />
    <TextView
        android:id="@+id/txt_empty_view"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />
    </FrameLayout>    
</com.yalantis.taurus.PullToRefreshView>

Hi, @khan-tm! Can you please provide more information?

Hello @warko-san What information you want?

I think nobody will listen here.