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. Beginning Development

Hi guys, I always wanted to be apart of the Open-Source community and
I am...Sadly I havent contributed as much as id like.

So id like to start by developing apps for the Android Mobile OS.

What are the programming languages that need to be known to begin
developing apps? I went to school for VB6, so I have SOME programming
experience.
I did a bit of reading, and I saw that JAVA is used to create EVERY
app and I saw a couple occurrences of C/C++. Are there any OTHER
languages that need to be known?

And im Jamaican, so hey to all.

-- 

2. Getting all of a long string in DDMS?

Hi all,

I'm getting a server response back in ddms, here's my code:

                        InputStream responseStream = 
method.getResponseBodyAsStream();
                        responseString = convertStreamToString(responseStream); 
// standard
function for InputStream > String
                        int statusCode = method.getStatusCode();
                        method.releaseConnection();
                        Log.e("httpPost", "Response string: " + responseString 
+ ", code: "
+ statusCode);

But I'm finding that ddms logs only show about the first 50 lines of
the response, then cuts everything else off, which isn't very helpful,
since it means I can't see any of the useful info. I don't have much
control over the content of the response - it's a standard Django
debug page, i.e. quite long.

Does anyone know how I can get ddms to show the whole thing?

Thanks!

-- 

3. http POST message

4. SMS Persistent notification!

5. Application invisible in Market from Nexus One. Please test.

6. Search Bar

7. WCF and Android