문제

Is there any way to handle onTouchListener on com.google.android.gms.maps.MapView. Because, I tried the regular way as we do in case of a Viewbut it didn't work.

도움이 되었습니까?

해결책

The android:clickable attribute defines whether you want to allow user-interaction with the map. If this is "false" then touching the map does nothing.

<?xml version="1.0" encoding="utf-8"?>
<com.google.android.maps.MapView
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/mapview"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:clickable="true"
    android:apiKey="API_KEY"
/>
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top