Open shadabhub opened 11 years ago
This issue bothers me too.
My walkaround is adding a big empty footer view into the list view. Note that you have to add the footer view before setting the list adapter.
I get this issue too. @vinceyuan your workaround doesn't work for me, could you post the xml of your footer view, please?
@danwebanddev The tricky thing is we must add an inner layout otherwise the customized height does not work.
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" >
<!--Must add an inner layout otherwise the customized height does not work-->
<FrameLayout
android:id="@+id/frameLayout"
android:layout_width="match_parent"
android:layout_height="@dimen/footer_view_small_height" >
</FrameLayout>
Correct code:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<!--Must add an inner layout otherwise the customized height does not work-->
<FrameLayout
android:id="@+id/frameLayout"
android:layout_width="match_parent"
android:layout_height="@dimen/footer_view_small_height" >
</FrameLayout>
</RelativeLayout>
@vinceyuan Thank you very much, I will try!
Tap to refresh is shown when only two items in ListView.
Can "Tap to refresh" can be hidden when listview content few items(2 or 3 items).?