[android-developers] Re: Set bounds for one layer of LayerDrawable?

2012-07-31 Thread skink
On Jul 31, 8:42 am, Dianne Hackborn 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.

Re: [android-developers] Re: Set bounds for one layer of LayerDrawable?

2012-07-30 Thread Dianne Hackborn
On Mon, Jul 30, 2012 at 11:34 PM, skink wrote: > as far i know this is not true: you can change the bounds of one layer > without affecting the other layers. try to: > d.setBounds(left, top, right, bottom); > d.invalidateSelf(); > in some callback method e.g. onClick(View v) and you will

[android-developers] Re: Set bounds for one layer of LayerDrawable?

2012-07-30 Thread skink
W dniu poniedziałek, 30 lipca 2012 18:44:34 UTC+2 użytkownik Jonathan Koren napisał: > > I'm creating a custom View that looks like a horizontal ProgressBar but > doesn't always have to touch the left edge. My approach is to use a > LayerDrawable in which one layer uses different bounds (compu