これを Drawable ファイル名「selector_fieldset_background.xml」に保持します。
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle" >
<solid android:color="#FFFFFF" />
<stroke
android:width="1dip"
android:color="#4fa5d5" />
</shape>
そして、これはあなたのレイアウトで:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginTop="13dp"
android:background="@drawable/selector_fieldset_background"
android:orientation="vertical" >
</LinearLayout>
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:background="@color/white"
android:paddingLeft="20dp"
android:paddingRight="20dp"
android:text="Order Information"
android:textAppearance="?android:attr/textAppearanceLarge"/>
</RelativeLayout>
これにより、画像に示すようにグループ ボックス コンポーネントが作成されます。