开发者

How to Add fraction to a ListView?

I added a ListView and a Button to a layout.

What I want to do is, when I click the button, the ListView should scroll to a specified item such as the 10th to the top. But I don't want it to scrol开发者_如何学JAVAl too fast like flipping a page.

How can I do this? Can I add a fraction to a ListView? If so, how can this be archived?


i haven't try it but you can use "setSmoothScrollingEnabled(boolean smoothScrollingEnabled)" method of listview.

i think this will help you.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜