Re: [android-developers] is there a way to make drawable clickable?

2010-09-19 Thread Dianne Hackborn
Drawables don't do anything but draw.  That don't receive input events, so
they have no concept of being clickable.

Views can be clickable, and you can associate a drawable with a view to
provide what the view draws.

So the simplest thing is to make a View, use View.setBackground() to give a
drawable it will draw as its background, and get the click events from the
view however you want.

On Sun, Sep 19, 2010 at 9:54 AM, dadada  wrote:

> hi all,
>
> i am using drawable and translateobject to create animation on camera
> overlay.
>
>
> how do i get clickable drawable object?
>
> should i be using drawable?
>
> thanks!
>
> bryan
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] is there a way to make drawable clickable?

2010-09-19 Thread dadada
hi all,

i am using drawable and translateobject to create animation on camera
overlay.


how do i get clickable drawable object?

should i be using drawable?

thanks!

bryan

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en