Re: [android-developers] Re: Help creating shape drawable

2011-04-27 Thread Streets Of Boston
Good one!! :) ... drawing two rectangles; the smaller one with rounded corners slightly smaller above the larger one with rectangular corners. As long as your paddings can be fixed/constant, this will work indeed :) -- You received this message because you are subscribed to the Google Groups "An

Re: [android-developers] Re: Help creating shape drawable

2011-04-27 Thread Kostya Vasilyev
Neil, Not to beat over a dead horse, and out of curiosity more than anything else... it is possible draw the outside rectangular border, in addition to the rounded inside border, with a layer list drawable. I am attaching a small (6K) screenshot. The green and brown could be changed to any o

Re: [android-developers] Re: Help creating shape drawable

2011-04-27 Thread Kostya Vasilyev
27.04.2011 19:53, Neilz пишет: Hi Kostya, I tried the example you gave above. Firstly it's not quite what I was after, as the outer edges are rounded - I need the drawable as a whole to be square/rectangular. Also, strangely, even though I've overlayed this over my image using a FrameLayout, the

Re: [android-developers] Re: Help creating shape drawable

2011-04-27 Thread Kostya Vasilyev
It draws the border, while leaving the interior untouched, available to draw something else, which I think is what the OP wanted? -- Kostya 27.04.2011 18:34, Streets Of Boston пишет: This would draw a transparent rectangle (with a 4dp border). It doesn't draw the white area outside the rectang

Re: [android-developers] Re: Help creating shape drawable

2011-04-27 Thread Streets Of Boston
This would draw a transparent rectangle (with a 4dp border). It doesn't draw the white area outside the rectangle. As far as I know, drawing something transparent does not clear a 'previous' color, i.e. drawing a transparent rectangle on a white background still would show white background with

Re: [android-developers] Re: Help creating shape drawable

2011-04-27 Thread Kostya Vasilyev
27.04.2011 17:50, Streets Of Boston ?: I don't think you can draw an 'inverse' rectangle like that using shape drawables. Why not? http://schemas.android.com/apk/res/android"; android:shape="rectangle"> ** http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.androi