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

Weird comportement in android 2.2 #41

Open
ToYonos opened this issue Nov 24, 2011 · 7 comments
Open

Weird comportement in android 2.2 #41

ToYonos opened this issue Nov 24, 2011 · 7 comments

Comments

@ToYonos
Copy link

ToYonos commented Nov 24, 2011

The list comports itself weirdly the first time it is loaded.
Without scrolling, I tapped anywhere in the list and some elements kinda dissapeared and reappeared, so do the header. I scrolled a little the list and everything went back to normal.

How I fix it ? It took me hours but I have finally sorted it out : I removed the onAttachedToWindow method in the PullToRefreshListView class.

Is it the same in other android version ? I don't know, I haven't push my investigation any further.

@johannilsson
Copy link
Owner

Hi, thank you for the report. Sorry for being lazy here but can this be reproduced in the example app as well?

You could also try the scrollfix_for_short_list which initializes itself a little bit different.

@ToYonos
Copy link
Author

ToYonos commented Nov 24, 2011

Yes, I tried the example app, without any modification, and the bug still appeared.

Actually, I don't really know if it's linked to the android version. Anyway, this trick works for me :)

@johannilsson
Copy link
Owner

Thank you for testing, will have a look at it and see if we can remove onAttachedToWindow.

@ToYonos
Copy link
Author

ToYonos commented Nov 24, 2011

And thank you for the lib

@since2006
Copy link

try to add a line in onAttachedToWindow:

super.onAttachedToWindow();

it's work fine to me with 2.2. :-)

@johannilsson
Copy link
Owner

@since2006 you're right that should be there, good catch.

@ToYonos
Copy link
Author

ToYonos commented Dec 8, 2011

@since2006 I tried this already and it didn't work at all.

Removing the overrided method was the only solution for me. (onAttachedToWindow() is still called but from the ListView class)

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

3 participants