Hi I was wondering if something like this is possible {

public class Foo extends Drawable {
 public void draw(Canvas canvas) {
    ... custom draw routine
 }
}

...

some_layout.xml
...
<View
   android:id="@+id/view1"
   android:background="@drawable/Foo"
/>
...

I know the second syntax doesn't work. However is such a concept
possible? Like can I reference a custom drawable class implementation
and ask for it to be used in place of a drawable made through an XML
layout?

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