开发者

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

开发者 https://www.devze.com 2023-01-26 06:07 出处:网络
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

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

精彩评论

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