HI TreKing,
On click of navigation key I am calling setFocus(OverlayItem) of next
element in my ItemizedOverlay. I am not calling nextFocus to get this
element, I am iterating through index of collection to get the next
element.

>>when the focus changes and can update your overlays as necessary.
that's my question, how can I update/change icon of my overlay item?

any idea?


Thanks,
Aamir

On Feb 9, 6:23 pm, TreKing <[email protected]> wrote:
> On Tue, Feb 9, 2010 at 11:07 AM, Aamir Yaseen <[email protected]>wrote:
>
> > We are displaying multiple events/venues on map (just like search on
> > google map for pizza) and we want to change icon of any event/venue
> > when user navigate through next/previous buttons. I am using
> > StateListDrawable to draw these icons, but I dont know how to change
> > state of any OverlayItem from onClick() of my navigation buttons.
>
> I assume when you click the next / previous buttons you are calling
> nextFocus() on your ItemizedOverlay list. In which case if you add a
> FocusChangedListener you will be notified when the focus changes and can
> update your overlays as necessary.
>
> -------------------------------------------------------------------------------------------------
> TreKing - Chicago transit tracking app for Android-powered 
> deviceshttp://sites.google.com/site/rezmobileapps/treking

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