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 first of a three-part blog post I plan on doing to cover defining drawables in xml: http://android-dev-tips-and-tricks.blogspot.com/2012/08/xml-drawables-part-i.html Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Aug 28, 2012 at 5:45 AM, vinay kumar <vk872...@gmail.com> wrote: > I mean to ask is there any problem with .png file. > > > On Tue, Aug 28, 2012 at 5:08 PM, vinay kumar <vk872...@gmail.com> 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 <paro...@gmail.com >> > 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 attached >>>> png. For the moment I'm using a bitmap definition xml named >>>> "background_dark.xml" like: >>>> >>>> >>>> <?xml version="1.0" encoding="utf-8"?> >>>> >>>> <bitmap >>>> xmlns:android="http://schemas.**android.com/apk/res/android<http://schemas.android.com/apk/res/android> >>>> " >>>> >>>> android:src="@drawable/fondo_**oscuro" >>>> >>>> android:tileMode="repeat"> >>>> >>>> </bitmap> >>>> >>>> >>>> And using it as the background drawable in my RelativeLayout: >>>> >>>> >>>> <RelativeLayout >>>> >>>> android:layout_width="fill_**parent" >>>> >>>> android:layout_height="fill_**parent" >>>> >>>> android:layout_below="@+id/**headerLayout" >>>> >>>> android:background="@drawable/**background_dark"> >>>> >>>> </RelativeLayout> >>>> >>>> >>>> But I want to make the same effect without using the png file, i.e. >>>> using only shapes and layer-list. The number of lines has to be different >>>> depending of the screen size, only the separation between lines are >>>> determinated. >>>> >>>> >>>> Does anyone know how can I do this? >>>> >>>> >>>> Thanks in advance. >>>> >>>> >>>> NOTE: Sorry about my english. >>>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Android Developers" group. >>> To post to this group, send email to android-developers@googlegroups.com >>> To unsubscribe from this group, send email to >>> android-developers+unsubscr...@googlegroups.com >>> For more options, visit this group at >>> http://groups.google.com/group/android-developers?hl=en >>> >> >> > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en