开发者

How to scroll listview smoothly to a certain row before SDK 8

开发者 https://www.devze.com 2023-03-09 20:34 出处:网络
I want to programmatically scroll a row to the top of 开发者_如何学Golistview, I tried the setSelection method, but no scroll animation

I want to programmatically scroll a row to the top of 开发者_如何学Golistview, I tried the setSelection method, but no scroll animation how to? please.


I have not tried this myself, but would simulating touch events work for this?

http://developer.android.com/reference/android/test/TouchUtils.html


I've searched and searched myself, and I do not believe there is any way to do this before API Level 8. If anyone suggests the View.scrollTo() or View.scrollBy() methods they will not work. Those move the entire View, not the content of the list.

0

精彩评论

暂无评论...
验证码 换一张
取 消