私の質問(以下)では、これが私の現在のレイアウトです:
<?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"
android:background="@drawable/verylightgrey" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="48dp"
android:weightSum="10" >
<TextView
android:id="@+id/location_banner"
android:layout_width="0dp"
android:layout_height="fill_parent"
android:layout_weight="8"
android:background="#9e0039" />
<TextView
android:layout_width="1dp"
android:layout_height="fill_parent"
android:background="@drawable/verylightgrey" />
<ImageView
android:id="@+id/location_directions"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_weight="2"
android:src="@drawable/directions" />
</LinearLayout>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:weightSum="2" >
<ImageView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:src="@drawable/map_satellite" />
<ImageView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:src="@drawable/map_street" />
</LinearLayout>
<com.google.android.maps.MapView
android:id="@+id/mapview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:apiKey="ladidadiomagadi"
android:clickable="true"
android:enabled="true" />
</LinearLayout>
mapview ではない部分でいくつかのクリック リスナーを有効にしたいと考えています。
Mapactivity
私がこれを行うことができた唯一の方法は、ビューをメニューオプションに移動することであるため、拡張するアクティビティでそれを行うことさえ可能ですか?
前もって感謝します。