ListView sometimes not calling onScrollStateChanged() when stop scrolling

by Mark Carter » Sat, 26 Mar 2011 12:38:11 GMT

Sponsored Links
 Normally this works fine - when scrolling stops, onScrollStateChanged() is 
called with SCROLL_STATE_IDLE.

However, sometimes it just isn't called. This can be observed from one touch 
to the next (i.e. it's not an implementation detail).

This is a problem, because I use the scroll state to determine when to 
pause/resume intensive background thread work.

Anyone got a workaround?


Other Threads

1. Maximum display resolution possible

Hi friends,
    I am new to android and I want to display some high resolution
images(1280x720) on android emulator .So please tell me which things I need
to change.



2. SimpleCursorAdapter and Spinner control


I'm trying to create a very simple application that extract data from
SQL database and populate a spinner control with (for example) product
I found the following example of the code:

String[] from = new String[] { "Product_Name" };

int[] to = new int[] { };

SimpleCursorAdapter adapter = new SimpleCursorAdapter(this,
android.R.layout.simple_spinner_item, product_cursor, from, to  );



The only thing I couldn't understand what should I put into "to"
array? The spinner is the only control on the form. I tried to find
the answer, but most of the samples use ListView control and put
"" into "to" array



3. Cannot see map in my mobile device

4. Multiple Layouts in a ListView

5. App upgrade (with zipalign) causes force closes/disappearing of app icon

6. Mounting an extra partition in Android

7. Trying to add an additional partition - must be missing something...