This might give you some hints

http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/widget/CompoundButton.java


On Nov 15, 11:54 pm, Bret Foreman <bret.fore...@gmail.com> wrote:
> I trying to create an ImageView with 3 states - default, pressed, and
> checked. I've extended ImageView, implemented the Checkable interface,
> and created a selector drawable file with entries for the three
> states. But I'm confused about just how it all is supposed to work.
> I've got the default and pressed states working as desired but the
> checked state isn't appearing when I think it should.
>
> Is there an example of a custom checkable ImageView somewhere?

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

Reply via email to