Hello!

I'm trying to write a Drawable (say, CustomDrawable) that implements
the Drawable.Callback interface.  The CustomDrawable extends Drawable,
but it needs the reference to mCallback in order to implement Callback
interface properly. Unfortunately, mCallback is declared as package
private in the parent Drawable. I was thinking about fetching the
reference to the callback by hooking to setCallback() and just storing
the passed object to some protected field, but the setCallback()
method is declared as final. So I don't know how to get a reference to
the callback object.

Is it possible to extend Drawable outside of the
android.graphics.drawable package at all? (Without resorting to
Reflection API, of course.)

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