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

Reply via email to