We can use
to create a simple border,for example I saw this code <a href="http://zaman91.wordpress.com/2010/12/30/android-how-to-create-rounded-border-or-background/" rel="nofollow noreferrer">here</a>:
But I need a border with a title like this image:
<img src=" " alt="enter image description here">
How I can do that?
Code:
shape
Code:
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle">
<corners android:radius="5dip" />
<solid android:color="@color/black" />
<stroke android:width="2dip" android:color="@color/white" />
</shape>
</item>
</layer-list>
But I need a border with a title like this image:
<img src=" " alt="enter image description here">
How I can do that?