gallery.setSelection(int) http://developer.android.com/reference/android/widget/AbsSpinner.html#setSelection%28int%29
On Aug 30, 1:11 pm, Perry168 <[email protected]> wrote: > Hi, > Today, I wrote a gallery example to show the photos. My problem is how > to set the init 'position' isn't started from zero? > For example: it has 9 photos. 1 to 9.jpg (array from 0 to 8) > When the program started, the 1.jpg (position 0) always showed in > gallery firstly. I would like the default is 5.jpg (position 4). > How to do this? Thanks! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

