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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T08:22:43+00:00 2026-06-09T08:22:43+00:00

I just started creating android apps, but i have a problem changing the layout

  • 0

I just started creating android apps, but i have a problem changing the layout, every time when i create new android project , it gives me RelativeLayout instead of LinearLayout, (well, basically i am following the book instruction, but it doesn’t teach me how to change it) I assume there must be a default setting so that i can change the Relativelayout to LinearLayout .

<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" >

<TextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_centerHorizontal="true"
    android:layout_centerVertical="true"
    android:text="@string/hello_world"
    tools:context=".MainActivity" />

</RelativeLayout>
  • 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-09T08:22:45+00:00Added an answer on June 9, 2026 at 8:22 am

    To change the Parent of your layout XML file follow these steps:

    • Right click your layout folder in res folder from project folder
      in eclipse. (<project-folder/res/layout>)
    • Choose option New -> Other.... Refer picture: select layout folder
    • Choose Android Layout XML file option from here. enter image description here
    • Press Next and select LinearLayout as Root Element and give File Name. Press Finishenter image description here
    • Now your Layout XML has the root element as LinearLayout
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am new to Android and I just started creating an application. I want
I have just started researching creating mobile apps and from what I understand one
I have just started reading on implementing RESTful web services and creating RESTful apis.
i just started using Flash builder 4 and i have a problem. As it
Just started with Android, and I have a question about handling images. I'm thinking
I've just started creating Unit Tests for my code again. I have had PHPUnit
Just started to develop for Android, the idea is to create an app available
I have just started creating my first website, which is backed by a database
I recently started creating apps for android and wanted to test layouts for different
I am using android.com tutorial to learn android using eclipse. I have just started

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.