画像の 9patch png バージョンを作成します。これは、特定の領域のみを伸ばすことができるイメージです。Android SDK にツールがあります。(矢印の左側の領域だけを伸ばす必要があります)。
次に、内部に 2 つのレイアウトがあるフレーム レイアウトを使用します。1 つは明るい青色の背景用で、もう 1 つはポインター用です。例えば:
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width/height/ect...>
<LinearLayout android:id="BlueBackground"
android:background="brightblue"
android:layout_width/height/ect.../>
<LinearLayout android:id="Pointer"
android:background="pointer9patch"
android:layout_width/height/ect...>
//The List
</LinearLayout>
</FrameLayout>
編集:
ポインター メニューを画面の特定の部分だけに表示したい場合は、水平方向の線形レイアウトを使用して画面を 2 つに分割できます。
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width/height/ect...>
<ImageView android:id="BlueBackground"
android:layout_width/height/ect...>
<LinearLayout android:id="HSplitLayout"
orientation="horizontal">
<LinearLayout android:id="Pointer"
android:layout_width/height/ect...>
//The List
</LinearLayout>
<ContentOnRight...>
</LinearLayout>
</FrameLayout>