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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T15:47:26+00:00 2026-06-17T15:47:26+00:00

I have 3 Linear Layouts inside a Relative Layout. It seems to be working

  • 0

I have 3 Linear Layouts inside a Relative Layout. It seems to be working in emulator and on physical device, however in Eclipse it’s completely off.

I am not sure whether there is some mistake in my code or this some normal behavior of Eclipse.

The code is:

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity" >    

<LinearLayout
    android:id="@+id/header"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical"
    android:gravity="center"
    android:background="#E89745"
    android:layout_alignParentTop="true"
    android:layout_above="@+id/logins"
    >

    <TextView
       android:layout_width="wrap_content"
       android:layout_height="wrap_content"
       android:text="header"
       android:gravity="center"
    />

</LinearLayout>

<LinearLayout
 android:id="@+id/logins"
 android:orientation="vertical"
 android:layout_width="match_parent"
 android:layout_height="wrap_content"
 android:layout_centerInParent="true"
 android:background="#F7E7AB">

    <EditText
        android:id="@+id/EditText01" 
        android:layout_height="wrap_content"
        android:layout_width="match_parent"
        />

    <EditText
        android:id="@+id/EditText02" 
        android:layout_height="wrap_content"
        android:layout_width="match_parent"
        />

    <Button
        android:id="@+id/Button01"
        android:text="Button"
        android:layout_height="wrap_content"
        android:layout_width="match_parent"
        />

</LinearLayout>

<LinearLayout
    android:id="@+id/footer"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical" 
    android:layout_below="@+id/logins"
    android:layout_alignParentBottom="true"
    android:background="#61A179"
    android:gravity="center"
    >

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="footer" />

</LinearLayout>
</RelativeLayout>

What it looks like in Eclipse:
What it looks like in Eclipse:

And in emulator and on device:
And in emulator and on device:

  • 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-06-17T15:47:27+00:00Added an answer on June 17, 2026 at 3:47 pm

    Simply by copy-pasting the provided XML, here’s what I’m getting in the Eclipse UI Editor.

    My rendition of the provided XML

    I’m currently using Eclipse v4.2.1 and ADT v21.0.1.

    I’m thinking perhaps you’re running an older version of the ADT Eclipse plugin and it’s causing you some issues. Try updating it via the Eclipse Help menu.

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

Sidebar

Related Questions

Ok I have a relative layout inside a linear one.Until now,the relative layout was
I have a linear-layout (vertically-oriented) that contains two nested linear layouts inside of it.
For examples two buttons inside a linear layout or a relative layout. Have each
i have created three linear layouts of equal weights. Inside one of the linear
I created one linear layout and I have added two relative layout. I wish
I have three buttons in my Actvity inside Linear Layout. Here i wish all
here I have a problem with layout, I have taken a linear layout inside
I have this problem accessing TextView inside Relative Layout inside LinearLayout Let's say I
I want to have a relative layout inside another full-screen relative layout, occupying full
i have 1 linear layout, inside it i have 1 table layout and inside

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.