1
MapViewで固定の場所にあるアイコンを表示したいだけです。オーバーレイは固定されている場合は行いますが、ユーザーが地図を移動するときに移動するオーバーレイの問題があります。しかし、私はこのアイコンを修正する必要があります。マップビューに「fixed postion」オーバーレイを表示するにはどうすればよいですか?
MapViewで固定の場所にあるアイコンを表示したいだけです。オーバーレイは固定されている場合は行いますが、ユーザーが地図を移動するときに移動するオーバーレイの問題があります。しかし、私はこのアイコンを修正する必要があります。マップビューに「fixed postion」オーバーレイを表示するにはどうすればよいですか?
あなたはこの
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<MapView
android:id="@+id/map"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:apiKey="X" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:src="@drawable/icon" />
</RelativeLayout>
のように、RelativeLayoutの内側にあなたのMapViewとImageViewのを囲むことができます