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

  • Home
  • SEARCH
  • 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 4018652
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:00:34+00:00 2026-05-20T10:00:34+00:00

I have spent a lot of time looking for a solution, but could not

  • 0

I have spent a lot of time looking for a solution, but could not find any. I’m almost certain that it will look like a dummy question to some of you, but I’m really stuck here.

I’m trying to have a MapActivity with a 5 rows ListView at the top of the screen, followed by a MapView. The ListView will always be 5 rows big.

I’m using this layout, which gave me the closest of the result I want :

<?xml version="1.0" encoding="utf-8"?>
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content">
    <ListView xmlns:android="http://schemas.android.com/apk/res/android"
          android:id="@+id/infoListe"
          android:layout_height="wrap_content"
          android:layout_width="wrap_content"
          android:cacheColorHint="#00000000"/>
    <com.google.android.maps.MapView
          android:id="@+id/mapview"
          android:layout_width="wrap_content"
          android:layout_height="200dip"
          android:enabled="true"
          android:clickable="true"
          android:apiKey="<KEY_OMITTED_HERE>"
          android:layout_alignParentBottom="true"/>
    </RelativeLayout>

I get the result I want on recent hi-res devices, but on lower resolution devices, the ListView and the MapView do overlap on the screen.

I would like your help to understand how to add a ScrollView to the layout so that I get a scrollable solution presenting :
1/ the 5 rows ListView
2/ the MapView

If the screen is to small, the user can scroll to get to the MapView section.

Thank you to anyone who will take a few minutes to help me. All my tests have failed so far.

Adam.

  • 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-20T10:00:35+00:00Added an answer on May 20, 2026 at 10:00 am

    Try this workaround : ListView in ScrollView potential workaround

    Basically try putting your map into the footerview of the listview to prevent them from overlapping.

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

Sidebar

Related Questions

I have already spent a lot of time on Google, but have not found
I have struggled a lot spent quiet a lot of time but unable to
I am currently making an Android launcher and have spent a lot of time
I've spent a lot of time working in Django, and have grokked the framework
I have spent a lot of time reading questions and answers about Big-Oh on
Spent a bunch of time looking at this.. It seems that what little info
I have spent quite a lot of time reading through AngularJS documentation and several
Have spent an hour trying to solve this - but to no avail. I'm
I have spent some time now to solve a problem for which i have
Before resorting to stackoverflow, i have spend a lot of times looking for the

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.