int count = g.getAdapter().getCount() / 2;
g.setSelection(count);
On Mar 29, 1:18 pm, MartyB <[EMAIL PROTECTED]> wrote:
> Hi,
> I want to modify the Gallery1 application to set the initial position
> to an image somewhere in the middle of the list on startup. Right now
> it always starts at position 0.
>
> Is there any way to set the initial displayed position to something
> other than index 0 in the image array?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---