[android-developers] Re: Shape having two sided border

2011-06-20 Thread Sapna Srivastav
?xml version=1.0 encoding=utf-8? RelativeLayout android:layout_width=wrap_content xmlns:android=http://schemas.android.com/apk/res/android; android:background=#ff android:layout_height=fill_parent ImageView android:layout_width=wrap_content android:id=@+id/

[android-developers] Re: Shape having two sided border

2011-06-17 Thread Sapna Srivastav
I am still getting the four boundaries on the layout. On Jun 16, 11:58 am, Rajiv rajiv...@gmail.com wrote: Use the following shape tag:  padding android:left=1dp                 android:top=0dp             android:right=1dp             android:bottom=0dp             / On Thu, Jun 16,

Re: [android-developers] Re: Shape having two sided border

2011-06-17 Thread Prakash Iyer
I'm not sure there is any XML way of doing this. You can extend TextView (or whatever is the view that you are looking to have this border on) and implement this in the onDraw. There should also be a way to write a Drawable and do this which can then be extended to any View but I don't know enough

Re: [android-developers] Re: Shape having two sided border

2011-06-17 Thread Kostya Vasilyev
You can also use a nine-patch drawable as the background, most of it transparent, the top-left edges having some pixels. -- Kostya 2011/6/17 Prakash Iyer thei...@gmail.com I'm not sure there is any XML way of doing this. You can extend TextView (or whatever is the view that you are looking to