我想禁用某些區域的調度觸摸,以便您理解這裏是我的屏幕。如何在屏幕的某些部分禁用調度觸摸事件
你可以看到頁眉,頁腳和MapView的圖像,但是當我點擊位置按鈕(右側頭),我的地圖也越來越通知(就像它得到了感動),我不想。我希望只有按鈕的onClick事件應該被點擊而不是調度事件。
這裏是我的XML:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/LinearLayout1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<!-- include title bar for all screen -->
<include
android:id="@+id/include1"
layout="@layout/titlebar_layout"
android:layout_gravity="top" />
<FrameLayout
android:layout_gravity="center"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="0.88"
>
<com.google.android.maps.MapView
android:id="@+id/map"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1.63"
android:apiKey="0VkXbAOFvAq7b6uaGHSmnS2a2VosPxoS6ceHY_g"
android:clickable="true" >
</com.google.android.maps.MapView>
</FrameLayout>
<include
android:id="@+id/include2"
android:layout_gravity="bottom"
android:layout_marginBottom="38dp"
layout="@layout/bottom_layout" />
</LinearLayout>
任何幫助將不勝感激。
哎爲answer..i'll感謝很快就回來接受你的答案,如果這個工程的答案 –
遺憾沒work..but感謝 –
+1的答案 –