Have you tried manually setting the selection after initialization?
http://developer.android.com/reference/android/widget/AbsSpinner.html#setSelection%28int,%20boolean%29

Not sure if that will work but it seems I've had to do that in the past...

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Fri, Oct 14, 2011 at 1:49 AM, flip <[email protected]>wrote:

> HI!
>
> I have a problem setting up a custom gallery background. The front/
> selected item background should differ from the inactive one. To solve
> this I attempt to use a drawable xml file including a selector for
> state_selected:
>
>        <item android:state_selected="true" android:drawable="@drawable/
> bg_karussell_active" />
>        <item android:state_selected="false" android:drawable="@drawable/
> bg_karussell_inactive" />
>
> The whole thing works fine except the initialization situation. There
> the focused item is inactive. When I shift the gallery to the next
> element, the distinction works fine.
>
> Does anyone have a good solution how to get the centered item focused
> after the initialization?
>
> --
> 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

-- 
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

Reply via email to