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 6079307
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:55:54+00:00 2026-05-23T10:55:54+00:00

I want to build a layout like this: My XML code: <?xml version=1.0 encoding=utf-8?>

  • 0

I want to build a layout like this:

enter image description here

My XML code:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" 
android:layout_height="fill_parent"
android:orientation="vertical"
android:id="@+id/base">
<com.google.android.maps.MapView
    android:id = "@+id/mapView"
    android:layout_width="match_parent" 
    android:layout_height="match_parent"
    android:enabled="true"
    android:clickable="true"
    android:apiKey="0HD__0DaIgzDb8nHjJsuggkHlW1MofMwg-xVCpA"
    />
    <EditText
        android:layout_width="fill_parent"
        android:layout_height="wrap_content">
        </EditText>
<LinearLayout android:id="@+id/linearLayout1" 
    android:gravity="bottom"
    android:layout_width="fill_parent"
    android:orientation="horizontal" 
    android:layout_height="wrap_content"
    android:layout_weight="1">
    <Button android:text="Cancel" 
    android:layout_height="wrap_content" 
    android:layout_width="wrap_content"
    android:layout_weight="1" ></Button>
    <Button android:text="Confirm" 
    android:layout_height="wrap_content" 
    android:layout_width="wrap_content"
    android:layout_weight="1"  ></Button>
  </LinearLayout> 
 </LinearLayout>`

But the result come out the total google map is put on top of every thing.
How can I fix this?

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

    Use Relative Layout
    I have modified your code. Use the folowing code

    <?xml version="1.0" encoding="utf-8"?>
    
    <RelativeLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:orientation="vertical"
        android:id="@+id/base">
    
        <EditText
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_alignParentTop="true"
            android:id="@+id/editText"
            >
        </EditText>
        <LinearLayout
            android:id="@+id/linearLayout1"
            android:gravity="bottom"
            android:layout_width="fill_parent"
            android:orientation="horizontal"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:layout_alignParentBottom="true">
            <Button
                android:text="Cancel"
                android:layout_height="wrap_content"
                android:layout_width="wrap_content"
                android:layout_weight="1"></Button>
            <Button
                android:text="Confirm"
                android:layout_height="wrap_content"
                android:layout_width="wrap_content"
                android:layout_weight="1"></Button>
        </LinearLayout>
    
        <com.google.android.maps.MapView
            android:id="@+id/mapView"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:enabled="true"
            android:clickable="true"
            android:apiKey="0HD__0DaIgzDb8nHjJsuggkHlW1MofMwg-xVCpA" 
            android:layout_below="@+id/editText"
            android:layout_above="@+id/linearLayout1"/>
    </RelativeLayout>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i want to bulid a table layouts like this.how? alt text http://privateevent.co.uk/underground/img/gallery/19_1236343602.png
At run time I want to dynamically build grid columns (or another display layout)
I want build a sketch pad app on iPhone, I assume that this type
As part of an automated build for android projects, I want to validate the
I am trying to build an android layout using layout_weight to fit all sizes
I want to build a Master-Detail layout for one of my applications using SWT.
I'm brand new to this and I'm trying build a simple layout of divs.
i want build a photography app with effects . e.g. old images with brown
I want to build a lightweight linux configuration to use for development. The first
I want to build a bot that asks someone a few simple questions and

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.