2012-11-28 78 views
1

我正在开发一个项目,我需要在圆内显示地图。如何在圆圈内显示地图视图。 enter image description here显示圆圈内的地图

+3

首先,链接不起作用。第2位。 Stackoverflow有能力将图片上传到您的文章。第三,你是否尝试过某些东西,或者只是希望人们会为你编码? –

+0

@Anders希望现在你可以看到这张照片。我自己尝试过,但我无法得到它。如果你能帮上忙,那会很棒。 – anshul

回答

0

因为你写了这么糟糕的问题。让我以相同的风格回答。
进行一次mapview。
圆角

风采吧,我还可以给你一个link to round corners

1

您可以用的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>