开发者

how to scroll up when choose some item at item list in android?

I jave a list of item (linearlayout inside a scr开发者_如何学Collview where i add buttons vertically to linearlayout dynamically from the java code ) ? i need when i click on one button the item moves up (scroll up) , to make the item at the first of the screen ??!


Well I never did that, but from the ListView reference it seems pretty clear that set setSelectionFromTop is what you are searching for.

See also how-to-autoscroll-a-list-view-in-android

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜