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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T20:09:50+00:00 2026-06-18T20:09:50+00:00

I am in the process of designing my first Android application and I am

  • 0

I am in the process of designing my first Android application and I am trying to get the hang of creating an XML layout. (I have a great deal of experience with Java)

Essentially what I wanna do:

http://i.imgur.com/ZgbvYsX.png

Where the outlines describes:

Blue: A basic View (where i can set a text)

Red: A ButtonView (Used so the user can synchronize data)

Green: A nested RelativeLayout (Where i am going to add a lot of other stuff)

More specifically what i wanna do:

enter image description here

So my question is this: How can i set up the different layouts? I am having the must trouble with setting up the blue and red views because i want the red view to fill up around 25% of the screen width(and the blue to fill up the last 75%).

Thank you in advance.

  • 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-18T20:09:52+00:00Added an answer on June 18, 2026 at 8:09 pm

    Use layout_weight property to specify the percentage of screen space a view takes.

    Like here, for e.g:

    <LinearLayout android:layout_height="match_parent" android:layout_width="match_parent"
    android:orientation="vertical"    .........>
    
         <LinearLayout android:layout_height="wrap_content" android:layout_width="match_parent"
         android:orientation="horizontal">
    
               <EditText android:layout_height="wrap_content" android:layout_width="0dip"
               android:layout_weight="3"/>
    
               <Button android:layout_height="wrap_content" android:layout_width="0dip"
               android:layout_weight="1"/>
    
         </LinearLayout>
    
         //Other view
    
    </LinearLayout>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm in the process of building and designing my first Javascript OOP web application
In the process of designing an application we've come to the conclusion that the
I'm in a process of designing a multi-tier ASP.NET web application that is supposed
I'm in the process of designing my ASP.NET MVC application and I ran across
I'm designing a new web application and I'm aware that the process of registration
I am in the process of designing an application that will allow you to
First, the background: I am creating a Flex application with a component that displays
I am in the process of designing and coding an iPhone application to display
I am in the process of designing a trading application which will use a
I'm designing a Google Contacts Import application using OAuth and PHP. I'm trying to

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.