android gallery image position problem

China☆狼群 提交于 2019-11-26 21:53:56

问题


As you in following android album widget images placement is from middle of the gallery i want to start image placement from beginning of the album.


回答1:


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




回答2:


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




回答3:


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.




回答4:


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



来源:https://stackoverflow.com/questions/3615140/android-gallery-image-position-problem

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!