Re: [android-developers] Shape having two sided border
Use the following shape tag: On Thu, Jun 16, 2011 at 12:06 PM, Sapna Srivastav wrote: > Hi all. > > I would like to create a layout having a shape that has border only on > 2 sides: > left and right, i.e. I want top and bottom to be open. How can I > achieve that > defining shape in XML? > > Currently I have a normal 4 side border using the following shape XML > definition: > > > http://schemas.android.com/apk/res/android"; >android:layout_width="fill_parent" >android:layout_height="fill_parent" >> > > /> > >android:color="#FF" >/> > > android:top="1dp" > android:right="1dp" > android:bottom="1dp" > /> > > > Please help, its urgent. > Thanks in advance. > > -- > 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
Re: [android-developers] Shape having two sided border
remove that padding bottom and top. then check it On Thu, Jun 16, 2011 at 12:06 PM, Sapna Srivastav wrote: > Hi all. > > I would like to create a layout having a shape that has border only on > 2 sides: > left and right, i.e. I want top and bottom to be open. How can I > achieve that > defining shape in XML? > > Currently I have a normal 4 side border using the following shape XML > definition: > > > http://schemas.android.com/apk/res/android"; >android:layout_width="fill_parent" >android:layout_height="fill_parent" >> > > /> > >android:color="#FF" >/> > > android:top="1dp" > android:right="1dp" > android:bottom="1dp" > /> > > > Please help, its urgent. > Thanks in advance. > > -- > 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 -- "Nobody can go back and start a new beginning, but anyone can start today and make a new ending" - Thanks, Regards, νιנαソαkum@r M BloG:http://iamvijayakumar.blogspot.com/ Mob.No:09048382536(Kerala) Mob.No:09751076707(TN) -- 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
[android-developers] Shape having two sided border
Hi all. I would like to create a layout having a shape that has border only on 2 sides: left and right, i.e. I want top and bottom to be open. How can I achieve that defining shape in XML? Currently I have a normal 4 side border using the following shape XML definition: http://schemas.android.com/apk/res/android"; android:layout_width="fill_parent" android:layout_height="fill_parent" > Please help, its urgent. Thanks in advance. -- 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