android-gallery how to set the position of the child which is selected

隐身守侯 提交于 2019-12-11 10:53:53

问题


as we know,the default position of the child which is selected is in the middle.but i want to show it in the gallery's left.how to do this.

thanks~


回答1:


use the method setSelection(int position) to set which item will be shown as selected. For showing the left you have just use setSelection(0). simple... please check the given link by Rahul for more information about Gallery



来源:https://stackoverflow.com/questions/4710413/android-gallery-how-to-set-the-position-of-the-child-which-is-selected

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