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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T23:30:15+00:00 2026-05-18T23:30:15+00:00

I think that’s a rather simple Question but I don’t get it the way

  • 0

I think that’s a rather simple Question but I don’t get it the way I want it to.
I Want do do a Linear Layout in Android with 3 areas.

The Top area should have a fixed height, fill_parent width.
The second, below the first, should use all the room available, fill_parent width.
The third, below the second, should have fixed height, fill_parent width.

Here is what i got:

<?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:gravity="bottom"
  android:background="#ff63a920">
   <LinearLayout
android:id="@+id/top_bar"
android:layout_width="fill_parent"
android:layout_height="32dp"
>
</LinearLayout>
  <com.google.android.maps.MapView android:id="@+id/mymapView"
        android:layout_width="fill_parent" 
        android:layout_height="fill_parent"
        android:enabled="true"
        android:clickable="true"


        />
 <LinearLayout
android:id="@+id/bottombar"
android:layout_width="fill_parent"
android:layout_height="32dp"
>
</LinearLayout>
</LinearLayout>

The Problem is, that the mapview in the middle ist too big, so it pushes out the topbar.

I Hope you can help me.

  • 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-18T23:30:16+00:00Added an answer on May 18, 2026 at 11:30 pm

    Thanks to Sebastian that’s what made the trick:

    <?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:gravity="bottom"
      android:background="#ff63a920">
       <LinearLayout
    android:id="@+id/top_bar"
    android:layout_width="fill_parent"
    android:layout_height="32dp"
    android:layout_weight="0"
    >
    </LinearLayout>
      <com.google.android.maps.MapView android:id="@+id/mymapView"
            android:layout_width="fill_parent" 
            android:layout_height="fill_parent"
            android:enabled="true"
            android:clickable="true"
            android:layout_weight="1"
    
            />
     <LinearLayout
    android:id="@+id/bottombar"
    android:layout_width="fill_parent"
    android:layout_height="32dp"
    android:layout_weight="0"
    >
    </LinearLayout>
    </LinearLayout>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I think that this is a relatively simple question. I just want to know
I think that it's really crazy question but anyway I want to know if
I think that's a very simple question, but I can't deal with it: I
I think that this should be easy, but I'm not able to get it
I think that the title accurately summarizes my question, but just to elaborate a
I think that this is a newbie type question but I have quite understood
I think that I am having a slow evening but I have a question
I think that java executables (jar files) are trivial to decompile and get the
just think that when I opened my file then when I want to write
I think that the zipper is a beautiful idea; it elegantly provides a way

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.