[android-developers] Re: Use of shapes for background

2012-08-29 Thread Pau Rodríguez Coloma
Thanks to all for your help. The "problem" (but not a critical problem) is that if I use a png file for the background I need at least 4 files for ldpi, mdpi, hdpi and xhdpi in order to have the same separation between lines. And also I think that if I use shapes instead of png I could have

[android-developers] Re: Use of shapes for background

2012-08-28 Thread bob
Why not extend android.widget.RelativeLayout and implement your own onDraw method? On Friday, August 24, 2012 5:08:54 AM UTC-5, Pau Rodríguez Coloma wrote: > > Hi, > > I'm want to set the background of a RelativeLayout like the attached png. > For the moment I'm using a bitmap definition x

Re: [android-developers] Re: Use of shapes for background

2012-08-28 Thread Justin Anderson
I am not sure you can do that exact background with shapes defined in XML. You can look here to see the full documentation on defining drawables in XML: http://developer.android.com/guide/topics/resources/drawable-resource.html Also, I have a blog post that covers some of these... This is the fir

Re: [android-developers] Re: Use of shapes for background

2012-08-28 Thread vinay kumar
I mean to ask is there any problem with .png file. On Tue, Aug 28, 2012 at 5:08 PM, vinay kumar wrote: > May I know what is the issue you are facing with? > > > On Tue, Aug 28, 2012 at 12:26 PM, Pau Rodríguez Coloma > wrote: > >> Please, help... >> >> El viernes, 24 de agosto de 2012 12:08:54 U

Re: [android-developers] Re: Use of shapes for background

2012-08-28 Thread vinay kumar
May I know what is the issue you are facing with? On Tue, Aug 28, 2012 at 12:26 PM, Pau Rodríguez Coloma wrote: > Please, help... > > El viernes, 24 de agosto de 2012 12:08:54 UTC+2, Pau Rodríguez Coloma > escribió: > >> Hi, >> >> I'm want to set the background of a RelativeLayout like the attac

[android-developers] Re: Use of shapes for background

2012-08-27 Thread Pau Rodríguez Coloma
Please, help... El viernes, 24 de agosto de 2012 12:08:54 UTC+2, Pau Rodríguez Coloma escribió: > > Hi, > > I'm want to set the background of a RelativeLayout like the attached png. > For the moment I'm using a bitmap definition xml named > "background_dark.xml" like: > > > > > http://schema