why my onScrollStateChanged(AbsListView view, int scrollState) effetct nothing

by Smith » Tue, 23 Mar 2010 01:48:39 GMT


Sponsored Links
 I use ListActivity , and implements OnScrollListener, and have my code
just like below
@Override
public void onScroll(AbsListView view, int firstVisibleItem, int
visibleItemCount, int totalItemCount) {
        Log.d(TAG,"onScroll");
        Toast.makeText(this, totalItemCount+"", Toast.LENGTH_SHORT).show();
}

@Override
public void onScrollStateChanged(AbsListView view, int scrollState) {
        Log.d(TAG,"onScrollStateChanged");
        Toast.makeText(this, "onScrollStateChanged",
Toast.LENGTH_SHORT).show();
}

every time I scroll the listview, and ddms output  "onScroll"
right .but when I scroll to the end and still scroll. It seems the
ddms should ouput onScrollStateChanged and have a toast, but it
doesn't. why?


--



Other Threads

1. 'Android Eats Apple' Wallpaper - Download

'Android Eats Apple' Wallpaper - Download 
GOPEGO.COM | MAY 11, 2011
http://android.gopego.com/2011/05/android-eats-apple-wallpaper-download 


Istilah 'Android Eats Apple' bukan sekedar rumor tapi secara 'resmi' dibawa ke 
Google I/O Conference dalam bentuk image ukuran ... Read more

--
Want to read news on the go? Get Pulse, an awesome news reader for iPad, iPhone 
and Android. Its Free! 


www.gopego.com
Sent from my iPhone

-- 
"

2. SocketException: Bad file number

I get a "SocketException: Bad file number" whenever I try to use a
BufferedReader on a HttpResponse. Basically I try to parse my response
from the server. The strange thing is, that it only happens on my LG
2x (Android 2.2.2), I don't get this error on the Android Emulator
(Google 2.2) and on a HTC (2.2).

In this thread (http://stackoverflow.com/questions/5609688/android-
what-is-a-bad-file-number-socketexception) someone explained why the
error occurs. But why is the problem only happening on the LG phone,
and more importantly, how can I solve it?

-- 

3. do you know esdn.ws?

4. how to play audio file chunks without interruption?

5. Bitmap Distortion

6. directly loading dynamically created classes (in dex format)

7. help with ImageView maxHeight set, but ignored