1

円の内側にマップを表示する必要があるプロジェクトに取り組んでいます。円の内側にマップビューを表示するにはどうすればよいですか。 ここに画像の説明を入力

4

2 に答える 2

1

FrameLayoutを使用してレイアウトを作成できます。最初のアイテムはMapViewである必要があり、次にその円が透明なpngを参照するImageViewである必要があります。お役に立てば幸いです。

例を追加するために編集:

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    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:clickable="true"
        android:apiKey="whateverYourApiKeyIs"/>

    <ImageView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:src="@drawable/fullSizeImageWithTransparentCircle"/>

</FrameLayout>
于 2012-11-28T09:22:28.010 に答える
0

あなたがそのような悪い質問を書くので。同じスタイルで答えさせてください。
マップビューを取ります。
丸い角でスタイリング

丸い角へのリンクもあげます

于 2012-11-28T09:14:10.223 に答える