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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:04:12+00:00 2026-05-26T20:04:12+00:00

I do not understand Android layouts. I have the following structure and have tried

  • 0

I do not understand Android layouts. I have the following structure and have tried all sorts of combinations of Relative and Linear layouts with layout above, below, gravity etc. and no matter what I do the webview either disappears or pushes the buttons off the bottom of the screen.

I do not understand why the renderer thinks this way. Surely if you have other things in the layout it should adjust it accordingly?

<?xml version="1.0" encoding="utf-8"?>
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical" android:layout_width="fill_parent"
    android:layout_height="fill_parent">
    <LinearLayout android:id="@+id/cage" android:layout_height="fill_parent" android:layout_width="fill_parent">
    <LinearLayout android:id="@+id/homelinklayout"
        android:layout_height="wrap_content" android:layout_width="fill_parent">
        <TextView android:text="FRAMTIDS" android:layout_width="wrap_content"
            android:id="@+id/hometext1" android:layout_height="wrap_content"
            android:textAppearance="?android:attr/textAppearanceLarge"></TextView>
        <TextView android:text="GYMNASIET" android:layout_width="wrap_content"
            android:id="@+id/hometext2" android:layout_height="wrap_content"
            android:textAppearance="?android:attr/textAppearanceLarge"></TextView>
        <ImageView android:layout_height="wrap_content" android:id="@+id/homeimage"
            android:layout_width="wrap_content" android:src="@drawable/next"></ImageView>
    </LinearLayout>

    <LinearLayout android:id="@+id/homewebviewlayout"
        android:layout_height="fill_parent" android:layout_width="fill_parent" >
            <WebView android:id="@+id/webview" android:layout_height="fill_parent"
                android:layout_width="fill_parent" />
    </LinearLayout>
</LinearLayout>

    <LinearLayout android:id="@+id/homebuttons" 
        android:layout_height="fill_parent" android:layout_width="fill_parent">
        <ImageView android:layout_height="wrap_content"  
            android:src="@drawable/icon_mapsetup" android:id="@+id/btn_skolor"
            android:layout_width="wrap_content" android:layout_gravity="bottom"></ImageView>
        <ImageView android:layout_height="wrap_content"
            android:src="@drawable/icon_mapsetup" android:id="@+id/btn_program"
            android:layout_width="wrap_content" android:layout_gravity="bottom"></ImageView>
        <ImageView android:layout_height="wrap_content"
            android:src="@drawable/icon_mapsetup" android:id="@+id/btn_framtid"
            android:layout_width="wrap_content" android:layout_gravity="bottom"></ImageView>
        <ImageView android:layout_height="wrap_content"
            android:src="@drawable/icon_mapsetup" android:id="@+id/btn_kontakt"
            android:layout_width="wrap_content" android:layout_gravity="bottom"></ImageView>
    </LinearLayout>

  • 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-26T20:04:12+00:00Added an answer on May 26, 2026 at 8:04 pm

    I am not very sure what you are trying to do here but try this

     <?xml version="1.0" encoding="utf-8"?>
      <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
          android:id="@+id/cage"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:orientation="vertical" >
    
    <TextView android:text="FRAMTIDS" android:layout_width="wrap_content"
                android:id="@+id/hometext1" android:layout_height="wrap_content"
                android:textAppearance="?android:attr/textAppearanceLarge"></TextView>
            <TextView android:text="GYMNASIET" android:layout_width="wrap_content"
                android:id="@+id/hometext2" android:layout_height="wrap_content"
                android:textAppearance="?android:attr/textAppearanceLarge"></TextView>
            <ImageView android:layout_height="wrap_content" android:id="@+id/homeimage"
                android:layout_width="wrap_content" android:src="@drawable/next"></ImageView>
    
                <WebView android:id="@+id/webview" android:layout_height="fill_parent"
                    android:layout_width="fill_parent" />
    
        <RelativeLayout
            android:id="@+id/homebuttons"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent" 
          >
    
            <ImageView
                android:id="@+id/btn_skolor"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="bottom"
                android:src="@drawable/capture" >
            </ImageView>
    
            <ImageView
                android:id="@+id/btn_program"
                android:layout_below="@id/btn_skolor"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="bottom"
                android:src="@drawable/icon_mapsetup" >
            </ImageView>
    
            <ImageView
                android:id="@+id/btn_framtid"
                android:layout_width="wrap_content"
                  android:layout_below="@id/btn_program"
                android:layout_height="wrap_content"
                android:layout_gravity="bottom"
                android:src="@drawable/icon_mapsetup" >
            </ImageView>
    
            <ImageView
                android:id="@+id/btn_kontakt"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="bottom"
                android:layout_below="@id/btn_framtid"
                android:src="@drawable/icon_mapsetup" >
            </ImageView>
    </RelativeLayout>
        </LinearLayout>
    

    you will be able to see your views

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

Sidebar

Related Questions

There is one thing that I do not understand... Imagine you have a text
if wrote the following code and do not understand why the trace returns false:
I thought I have understood the XML layout of Android, but it seems that
I am trying to build an android layout using layout_weight to fit all sizes
Why does my relative layout occupy full screen width <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
I have an application which has (mostly) images in its layouts. As I understand,
I know that similar questions have already been asked but I do not understand
I do not understand pointers. Where can I learn more about them?
I simply do not understand why both works: this.timer.Tick += new EventHandler(timer_Tick); this.timer.Tick +=
I do not understand what environment a eval or exec statement executes in. You

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.