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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T15:54:04+00:00 2026-05-31T15:54:04+00:00

i want to create a screen like this on the android : and achieving

  • 0

i want to create a screen like this on the android :

enter image description here

and achieving this, i write some codes like that.. But i didn’t do what i want. The text area doesn’t exist in the screen. What should i do ? Any opinion.. thank you in advance..

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:id="@+id/linearLayout123" 
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:orientation="vertical"
        android:weightSum="1.0"
        android:gravity="fill">

    <LinearLayout
        android:id="@+id/linearLayout12"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="top" >

     <Button android:id="@+id/button1"              
         android:layout_width="wrap_content"                                          
         android:layout_height="wrap_content"           
         android:text="Hello, I am a Button" />

        </LinearLayout>


    <LinearLayout
        android:id="@+id/linearLayout2"
        android:layout_width="118dp"
        android:layout_height="fill_parent"
        android:layout_gravity="right"
        android:orientation="vertical" >

         <Button android:id="@+id/button2"              
         android:layout_width="wrap_content"                                          
         android:layout_height="wrap_content"           
         android:text="Hello, I am a Button" />
    </LinearLayout>

    <LinearLayout
        android:id="@+id/linearLayout1"
        android:layout_width="228dp"
        android:layout_height="fill_parent"
        android:layout_gravity="left" >

           <TextView 
                android:id="@+id/text2"              
                android:layout_width="wrap_content"             
                android:layout_height="wrap_content"              
                android:text="Hello, I am a TextView" />

           </LinearLayout>


    </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-31T15:54:05+00:00Added an answer on May 31, 2026 at 3:54 pm

    A RelativeLayout will accomplish what you want

    <?xml version="1.0" encoding="utf-8"?>
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="match_parent"
        android:layout_height="match_parent">
    
         <LinearLayout
            android:id="@+id/rightLayout"
            android:layout_width="100dip"
            android:layout_height="fill_parent"
            android:layout_alignParentRight="true"
            android:background="#003300"
            android:orientation="vertical" >
        </LinearLayout>
    
    
        <LinearLayout
            android:id="@+id/topLayout"
            android:layout_toLeftOf="@id/rightLayout"
            android:layout_width="fill_parent"
            android:layout_height="100dip"
            android:layout_alignParentLeft="true"
            android:layout_alignParentTop="true"
            android:background="#330033"
            android:orientation="vertical" >
        </LinearLayout>
    
        <LinearLayout
            android:id="@+id/bottomLayout"
            android:layout_toLeftOf="@id/rightLayout"
            android:layout_below="@id/topLayout"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:layout_alignParentLeft="true"
            android:background="#334433"
            android:orientation="vertical" >
        </LinearLayout>
    
    </RelativeLayout>
    

    The result as LinearLayouts and as Buttons/TextViews (since I wasn’t sure which you wanted):

    Result Result2

    If you are using the LinearLayouts as a container to hold multiple views then leave it as I have it.

    If you plan on having only one view in each of your “parts” change the LinearLayouts in my layout file to that type.
    Ex. if you want Part 1 to be just a button change

    <LinearLayout
            android:id="@+id/topLayout"
    

    to be

    <Button
            android:id="@+id/topLayout"
    

    Nested views are bad so its good to avoid them if you can

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

Sidebar

Related Questions

I want to create some kind of row image that looks like that but
I want to create an android activity that looks like the one below this.
i need to create a login screen in android that will look like this.
I have created a button in my screen's XML like this: <Button android:text=Lets Get
i want to create screen in android like the image below(click on the hyperlink)
I want to create a helper screen that can create a bunch of Django
I want to create some icon and button images to be used in android.
Any idea why this doesn't create an activity that looks like a popup instead
I want to create a splash screen that will then move to the login/register
Hy! I've created a button on android in which the text looks like this:

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.