Cómo crear una frontera titulada en Android?

Tiene alguien una idea de cómo crear un diseño de frontera titulado como en el swing ?

En este sitio encontré un truco para generar un rectángulo entre un objeto. Tal vez esto puede ayudarme a crear una frontera así titulado?

saludos

Rápido y sucio:

<?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:color="#000000"> <View android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@drawable/rectangle" android:layout_margin="20dp" /> <RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" android:background="#000000" android:layout_marginTop="10dp" android:text="TITLE!" android:textColor="#ffffff"/> </RelativeLayout> </FrameLayout> 

Y @drawable/rectangle está en un archivo drawable rectangle.xml como este:

 <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <solid android:color="@android:color/transparent"/> <stroke android:width="2dip" android:color="#ffffff"/> </shape> 
FlipAndroid es un fan de Google para Android, Todo sobre Android Phones, Android Wear, Android Dev y Aplicaciones para Android Aplicaciones.