Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6689509
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:31:38+00:00 2026-05-26T05:31:38+00:00

hi i am using a mapview in my application.it showing correctly but the problem

  • 0

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 location.you can say that mapview is not responding to touchevent in my layout.here is my layout code

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:orientation="vertical"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:background="#FFFFFF">
    <TextView
    android:id="@+id/name"
    android:layout_width="fill_parent"
    android:layout_height="50px"
    android:textSize="20sp"
    />
    <TextView
    android:id="@+id/link"
    android:layout_width="fill_parent" 
    android:layout_height="50px" 
    android:autoLink="web"/>
    <TextView
    android:id="@+id/department"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    />
    <TextView
    android:id="@+id/count"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"/>
    <TextView
    android:id="@+id/location"
    android:layout_width="fill_parent"
    android:layout_height="80px" />
    <LinearLayout
    android:orientation="horizontal"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content" >
    <TextView
    android:id="@+id/longitude"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_weight="1"/>
    <TextView
    android:id="@+id/latitude"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_weight="1"/>
    </LinearLayout>
    <LinearLayout
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:orientation="horizontal">
    <Button
    android:id="@+id/zoomin"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_weight="1" 
    android:text="ZoomIn"/>
<Button

android:id="@+id/zoomout"
android:layout_width="wrap_content"
android:layout_height="wrap_content" 
android:layout_weight="1"
android:text="Zoom Out"/>

    </LinearLayout>
    <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"
                 />

</LinearLayout>

moving to different location when any view is any location is touched by default can any one please tell why its not moving and what should i do so that on touch event it will move.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T05:31:39+00:00Added an answer on May 26, 2026 at 5:31 am

    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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im using MapKit in my application and disaply the user location with [mapview setShowUserLocation:YES];
Developing iphone application using makkit framework. I have got the map view integrated in
I am using MapView in my application, Which contains several markers of same user
how select a location on google map or on MapView in my application using
I have a com.google.android.maps.MapView in my application. When using the normal view I do
We are using a Google MapView in our application but on different computers we
I have an application that uses the mapview-overlay-manager code to draw map markers on
I have used MKReverseGeocoder from iPhone sdk for my application without using mapview of
In my iphone application, I'm using MapKit with MKMapView and custom MKAnnotationView. The problem
I m using MkMapView with google maps.I succeed to show map view and address

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.