Touch Event In Mapview In Android
hi i am using a mapview in my application.it showing correctly but the problem is when i touch map view its not moving if a user want to see nearby location he cant move to that lo
Solution 1:
If i understand your problem correctly its that when you try to move around the map its not doing anything.. It might help to add theese two lines inside your XML
android:enabled="true"android:clickable="true"
It should look like this inside your snippet:
<com.google.android.maps.MapView
android:id="@+id/mapview"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:apiKey="0PmsmqKFKflNmHXD2fwG_vPWnR2gA-YB2QVlIQA"
android:layout_weight="2"
android:enabled="true"
android:clickable="true"
/>
So try add the two lines inside your XML at the MapView object and it should work.
Solution 2:
Awesome tutorial here http://mobiforge.com/developing/story/using-google-maps-android?page=1
Post a Comment for "Touch Event In Mapview In Android"