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 (computed
On Mon, Jul 30, 2012 at 11:34 PM, skink psk...@gmail.com 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)
On Jul 31, 8:42 am, Dianne Hackborn hack...@android.com 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
3 matches
Mail list logo