トピックがわかりにくい場合は申し訳ありませんが、必要なレイアウトを説明するためにどの単語を使用すればよいかわかりません。
現在、マップビューに中空レイアウトをオーバーレイする必要があるプロジェクトに取り組んでいます。中空レイアウトは、遠距離の位置ポイントを表示するために使用します。私が意味することを示すために画像を投稿します。
基本的に、画面全体がMapviewで塗りつぶされ、オーバーレイレイアウトは、画像に表示されているように、中央を覆わずにオーバーレイする必要があります。
これがxmlで、上記のようなレイアウトを作成するために行ったことを示しています。
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<com.google.android.maps.MapView
android:id="@+id/MapView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:enabled="true"
android:clickable="true"
android:apiKey="..."
/>
<View
android:layout_width="320dip"
android:layout_height="50dip"
android:layout_gravity="center_horizontal|top"
android:background="#800ff4ff"
android:textColor="#ffffffff" />
<View
android:layout_width="320dip"
android:layout_height="50dip"
android:layout_gravity="center_horizontal|bottom"
android:background="#800ff4ff"
android:textColor="#ffffffff"
/>
<View
android:layout_width="50dip"
android:layout_height="520dip"
android:layout_gravity="center_vertical|right"
android:background="#800ff4ff"
android:textColor="#ffffffff" />
<View
android:layout_width="50dip"
android:layout_height="520dip"
android:layout_gravity="center_vertical|left"
android:padding="20dip"
android:background="#800ff4ff"
android:textColor="#ffffffff" />
</FrameLayout>
フレームレイアウトを使用して、レイアウトが他のレイアウトをオーバーレイできるようにし、各エッジに4つの個別のレイアウトを作成して、本当に必要なもの(中央が空)をシミュレートします。誰がレイアウトを4辺だけにし、中央を見えないようにするのかわかりません。誰か助けてくれる人がいたら、私にアドバイスをください。ありがとう。