1
我正在開發一個項目,我需要在圓內顯示地圖。如何在圓圈內顯示地圖視圖。 顯示圓圈內的地圖
我正在開發一個項目,我需要在圓內顯示地圖。如何在圓圈內顯示地圖視圖。 顯示圓圈內的地圖
因爲你寫了這麼糟糕的問題。讓我以相同的風格回答。
進行一次mapview。
圓角
風采吧,我還可以給你一個link to round corners
您可以用的FrameLayout組成的佈局。第一個項目必須是MapView,然後是一個ImageView,並且該圓圈透明地引用png。希望有所幫助。
編輯補充一個例子:
<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>
首先,鏈接不起作用。第2位。 Stackoverflow有能力將圖片上傳到您的文章。第三,你是否嘗試過某些東西,或者只是希望人們會爲你編碼? –
@Anders希望現在你可以看到這張照片。我自己嘗試過,但我無法得到它。如果你能幫上忙,那會很棒。 – anshul