OnTouchListener is not able to change ImageResource

by Justin Anderson » Mon, 07 Sep 2009 09:13:10 GMT


Sponsored Links
 I'm not sure offhand why this crashes, but it could be any number of
reasons...  If you could post the logcat output, that would be very helpful.

Also, I was wondering what you were trying to accomplish with this?  If you
are trying to change the image when a touch event occurs and then have it
change back when the touch event is done, you may want to consider using a
selector drawable instead...

It allows you to specify a single drawable that will change based on the
state of the object... i.e. onFocus, onPressed, etc....

I just barely figured out how to do that and there wasn't a whole lot of
documentation available.  If that is what you are trying to do I will post
again with how to do that...

Thanks,
Justin

----------------------------------------------------------------------
There are only 10 types of people in the world...
Those who know binary and those who don't.
----------------------------------------------------------------------






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



Other Threads

1. Android Email Client Omits Email Headers

Hi,

In Android 2.2, the email client appears to omit the Date header
spec'd in RFC822. We need to generate emails to a server that enforces
this requirement of the RFC. Is there anyway to get the standard email
client to include the Date header or to detect that a message was
generated by Android?

Is this a known issue? Thank you in advance.

-J

-- 

2. Problems porting Android OS onto a new platform

Hi everyone,

We are desperatley trying to port the Android OS onto our own
Smartphone and could really do with some help from someone who has
experience of doing this at the low level, ie writing the device
drivers etc.  For the sake of trying not to re-invent the wheel - does
anyone have experience of doing this, and is willing to help us?

Thanks,
David

-- 

3. How to embed an external Activity inside one of mine?

4. Appearance updated application as "Just in" - wait 12-14 days between updates?

5. content://telephony/carriers and HTC Incredible

6. How to create a custom View

7. Windows drivers, inf file, and device ID's