Issue
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 View
but it didn't work.
Solution
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"
/>
Answered By - Timuçin
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.