ImageView, afaik, does not have "selected" state, only "pressed" and
"focused" (and I'm not sure about the latter). Try using an ImageButton with
a custom background.

--
Kostya Vasilyev -- http://kmansoft.wordpress.com
06.01.2011 14:02 пользователь "Johannes De Smedt" <
[email protected]> написал:
> Hello,
>
> In my application I need an ImageView that is clickable and that shows
> its selected state to the user.
> It should also be longClickable.
>
> My problem is that I when I set my ImageView clickable, my
> onClickListener is no longer called. And when I don't set my
> ImageView clickable, my selected state is not visible.
>
> Anyone has some tips on how to accomplish this?
>
> --
> 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]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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