On Jul 31, 8:42 am, Dianne Hackborn <[email protected]> wrote:
> If you are suggesting to do this on one of the child drawables that you
> have placed in the LayerDrawable, then you are relying on the framework
> never calling setBounds() again on that Drawable itself.  This is a very
> dangerous thing to rely on.  This is very very far into the realm of
> relying on implementation details that there will be no guarantee remain
> that way.
>
> When you put a drawable into a parent drawable, the parent owns the state
> management of the child drawable.  Don't try to play games whacking on its
> state yourself in the hope you can get lucky and not conflict with it.
>  (And this is a good rule to assume for any situation where you are placing
> a child object into a parent container.)
>
> --
> Dianne Hackborn
> Android framework engineer

Dianne I agree but it should be somehow documented in LayerDrawable
docs: i saw similar notes in other android javadocs.

Anyway i think the OP could solve his problem using InsetDrawable but
in another post you said it's impossible to achieve what they wanted
without creating custom Drawable, is it really right?

pskink

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