开发者

android gallery image position problem

开发者 https://www.devze.com 2023-01-13 18:45 出处:网络
As you in following android album widget images placement is from middle of the gallery i want to start image placement from begi开发者_Python百科nning of the album.

As you in following android album widget images placement is from middle of the gallery i want to start image placement from begi开发者_Python百科nning of the album.

android gallery image position problem


Gallery#setSelection(1); after the setAdapter() will do the trick :)


can you use scrollX in the gallery xml ?,the Value you should do yourself i think


The gallery view of Android is designed to start from middle part of the activity.You cant start the image placement from start of gallery. To do this you can make customized gallery view with help of Image view and horizontal scroll bar.


The gallery by default align the elements to center.... You should be rewrite the gallery class...

0

精彩评论

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