Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tap to refresh is shown when only two items in ListView #59

Open
shadabhub opened this issue Mar 14, 2013 · 6 comments
Open

Tap to refresh is shown when only two items in ListView #59

shadabhub opened this issue Mar 14, 2013 · 6 comments

Comments

@shadabhub
Copy link

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).?

@lhhGit
Copy link

lhhGit commented May 13, 2013

This issue bothers me too.

@vinceyuan
Copy link

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.

@danwebanddev
Copy link

I get this issue too.
@vinceyuan your workaround doesn't work for me, could you post the xml of your footer view, please?

@vinceyuan
Copy link

@danwebanddev The tricky thing is we must add an inner layout otherwise the customized height does not work.

<!--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>

@vinceyuan
Copy link

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>

@danwebanddev
Copy link

@vinceyuan
Thank you very much, I will try!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants