On Sep 6, 3:00 pm, honcheng <[email protected]> wrote:
> I have only seem getDrawable() as a method in ImageView. How do I just
> create a Drawable after I subclass it?
public class MyStateDrawable extends Drawable {
...
}
-----------
Drawable d = new MyStateDrawable();
myView.setBackgroundDrawable(d);
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---