开发者

android gallery image position problem

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜