[android-developers] Re: Building composed shapes

2011-05-31 Thread Paolo
SOLUTION: layer = (LayerDrawable) getResources().getDrawable(R.drawable.layers); layer.setBounds(** what you want **); layer.mutate(); layer.draw(canvas); On 31 Mag, 11:29, Paolo wrote: > UPDATE 2: > > I found out the problem! > > BitmapFactory.deco

[android-developers] Re: Building composed shapes

2011-05-31 Thread Paolo
UPDATE 2: I found out the problem! BitmapFactory.decodeResource(context.getResources(), R.drawable.layers); return always NULL, what could be the problem for you? On 31 Mag, 11:15, Paolo wrote: > UPDATE: > I have been able to write (layers.xml) what I want on a XML file using > Layer-List. > s

[android-developers] Re: Building composed shapes

2011-05-31 Thread Paolo
UPDATE: I have been able to write (layers.xml) what I want on a XML file using Layer-List. so I can use this drawable on a ImageView normally doing: Everything works fine! But this isn't my aim. Actually I'd like to use this drawable as a background of my custom view, so I need to use it into t