0

私は現在、Google マップを含む Android アプリケーションを実行しており、指先の動きを使用してマップの上に描画したいと考えています。助けてください

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >

<com.google.android.maps.MapView
    android:id="@+id/myGMap"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:apiKey="0TToqyhMYWcvDuJ5NvNtgc-kB8gljGrTXPgiaqw"
    android:clickable="true"
    android:enabled="true" />

</LinearLayout>
4

1 に答える 1

0

LinearLayout の代わりに RelativeLayout を使用します。これにより、SurfaceView を MapView の上に重ねることができます。SurfaceView のイベント ハンドラーでは、指先の動きを検出するコードを記述できます。[マップ上に透明なサーフェス ビューを配置する] にチェックを入れます

于 2012-09-21T03:45:09.390 に答える