OverlayItem Drawable Any way to get current drawable?

by Wayne Wenthin » Wed, 10 Jun 2009 06:29:51 GMT


Sponsored Links
 I am looking at changing the drawable on an OverlayItem when it is tapped
and then restoring that to its previous state later.   I can't seem to find
a way to extract the current drawable out of the OI.   I have multiple
drawables in the same overlay and would prefer not to split them up.   Is
there something I'm missing here?

--~--~---------~--~----~------------~-------~--~----~



OverlayItem Drawable Any way to get current drawable?

by Mark Murphy » Wed, 10 Jun 2009 07:21:47 GMT


 


You could keep track of your item states outside of the drawables. I
think you can subclass OverlayItem to add whatever additional
information you might want to hold onto.

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://twitter.com/commonsguy 

Need help for your Android OSS project?  http://wiki.andmob.org/hado 

--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. connect to PC

plis help me...

gmn caranya biar si Andro bisa connect ke PC, macem Windows XP gitu?
apakah ada 3rd application?
--~--~---------~--~----~------------~-------~--~----~
=========================
Google Groups "Indonesian Android Community [id-android]" group.

To post to this group, send email to id-android@googlegroups.com

To request to subscribe to this group:

Click  

2. gallery problem

hi all,

I used the gallery widget for photo shows,
when I put the photos in the photo directory,
there will be some black photos on the gallery when gallery shows,
so, did somebody have the same experience?


thanks

-- 

3. Selectively start a service based on type of build

4. threaded email

5. How to know deletion of Media Store.

6. Question on building factory installed app with native Lib and external data on Cupcake

7. Worldwide requests from Android devices increased 5.8 times since April 2009