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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:40:39+00:00 2026-06-18T01:40:39+00:00

I need to implement my android layout as the image below: A – Should

  • 0

I need to implement my android layout as the image below:

enter image description here

A – Should hold the components in the following manner
enter image description here

B – Should take up 75% of the screen space and should have a vertical scroll bar

My question is, how would my Android XML look like? Guys thanks in advance.

My XML is as follows:

    <?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:android1="http://schemas.android.com/apk/res/android"
    android:id="@+id/tvDate"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:fillViewport="true" >

    <RelativeLayout
        android1:layout_width="match_parent"
        android1:layout_height="match_parent" >

        <NumberPicker
            android1:id="@+id/numberPicker2"
            android1:layout_width="wrap_content"
            android1:layout_height="wrap_content"
            android1:layout_alignTop="@+id/numberPicker1"
            android1:layout_toRightOf="@+id/numberPicker1" />

        <NumberPicker
            android1:id="@+id/numberPicker3"
            android1:layout_width="wrap_content"
            android1:layout_height="wrap_content"
            android1:layout_alignTop="@+id/numberPicker2"
            android1:layout_toRightOf="@+id/numberPicker2" />

        <NumberPicker
            android1:id="@+id/numberPicker4"
            android1:layout_width="wrap_content"
            android1:layout_height="wrap_content"
            android1:layout_alignBottom="@+id/numberPicker3"
            android1:layout_toRightOf="@+id/numberPicker3" />

        <NumberPicker
            android1:id="@+id/numberPicker5"
            android1:layout_width="wrap_content"
            android1:layout_height="wrap_content"
            android1:layout_alignTop="@+id/numberPicker4"
            android1:layout_toRightOf="@+id/numberPicker4" />

        <NumberPicker
            android1:id="@+id/numberPicker6"
            android1:layout_width="wrap_content"
            android1:layout_height="wrap_content"
            android1:layout_alignBottom="@+id/numberPicker5"
            android1:layout_toRightOf="@+id/numberPicker5" />

        <NumberPicker
            android1:id="@+id/numberPicker7"
            android1:layout_width="wrap_content"
            android1:layout_height="wrap_content"
            android1:layout_alignBottom="@+id/numberPicker6"
            android1:layout_toRightOf="@+id/numberPicker6" />

        <NumberPicker
            android1:id="@+id/numberPicker8"
            android1:layout_width="wrap_content"
            android1:layout_height="wrap_content"
            android1:layout_alignTop="@+id/numberPicker7"
            android1:layout_toRightOf="@+id/numberPicker7" />

        <TextView
            android1:id="@+id/textView1"
            android1:layout_width="wrap_content"
            android1:layout_height="wrap_content"
            android1:layout_alignLeft="@+id/numberPicker1"
            android1:layout_alignParentTop="true"
            android1:layout_marginTop="22dp"
            android1:text="Start Mileage"
            android1:textAppearance="?android:attr/textAppearanceMedium" />

        <ImageView
            android1:id="@+id/imageView1"
            android1:layout_width="wrap_content"
            android1:layout_height="wrap_content"
            android1:layout_alignParentTop="true"
            android1:layout_marginRight="25dp"
            android1:layout_toLeftOf="@+id/textView1"
            android1:src="@drawable/line" />

        <Button
            android1:id="@+id/button1"
            android1:layout_width="wrap_content"
            android1:layout_height="wrap_content"
            android1:layout_alignParentLeft="true"
            android1:layout_alignTop="@+id/textView1"
            android1:layout_toLeftOf="@+id/imageView1"
            android1:text="Request Bundle" />

        <EditText
            android1:id="@+id/editText2"
            android1:layout_width="wrap_content"
            android1:layout_height="wrap_content"
            android1:layout_alignBaseline="@+id/textView3"
            android1:layout_alignBottom="@+id/textView3"
            android1:layout_toLeftOf="@+id/imageView1"
            android1:layout_toRightOf="@+id/textView5"
            android1:ems="10" />

        <TextView
            android1:id="@+id/textView4"
            android1:layout_width="wrap_content"
            android1:layout_height="wrap_content"
            android1:layout_alignLeft="@+id/textView3"
            android1:layout_below="@+id/editText2"
            android1:layout_marginTop="29dp"
            android1:text="Driver Name"
            android1:textAppearance="?android:attr/textAppearanceSmall" />

        <EditText
            android1:id="@+id/editText3"
            android1:layout_width="wrap_content"
            android1:layout_height="wrap_content"
            android1:layout_alignBaseline="@+id/textView4"
            android1:layout_alignBottom="@+id/textView4"
            android1:layout_alignRight="@+id/editText2"
            android1:layout_toRightOf="@+id/textView5"
            android1:ems="10" />

        <TextView
            android1:id="@+id/textView5"
            android1:layout_width="wrap_content"
            android1:layout_height="wrap_content"
            android1:layout_alignLeft="@+id/textView4"
            android1:layout_below="@+id/editText3"
            android1:layout_marginTop="31dp"
            android1:text="Number of passengers"
            android1:textAppearance="?android:attr/textAppearanceSmall" />

        <EditText
            android1:id="@+id/editText4"
            android1:layout_width="wrap_content"
            android1:layout_height="wrap_content"
            android1:layout_alignBaseline="@+id/textView5"
            android1:layout_alignBottom="@+id/textView5"
            android1:layout_toLeftOf="@+id/imageView1"
            android1:layout_toRightOf="@+id/textView5"
            android1:ems="10" />

        <TextView
            android1:id="@+id/textView3"
            android1:layout_width="wrap_content"
            android1:layout_height="wrap_content"
            android1:layout_alignParentLeft="true"
            android1:layout_below="@+id/button1"
            android1:layout_marginLeft="26dp"
            android1:layout_marginTop="27dp"
            android1:text="Vehicle Number"
            android1:textAppearance="?android:attr/textAppearanceSmall" />

        <TextView
            android1:id="@+id/textView2"
            android1:layout_width="wrap_content"
            android1:layout_height="wrap_content"
            android1:layout_alignLeft="@+id/textView5"
            android1:layout_centerVertical="true"
            android1:text="Date"
            android1:textAppearance="?android:attr/textAppearanceSmall" />

        <EditText
            android1:id="@+id/editText1"
            android1:layout_width="wrap_content"
            android1:layout_height="wrap_content"
            android1:layout_alignRight="@+id/editText4"
            android1:layout_centerVertical="true"
            android1:layout_toRightOf="@+id/textView5"
            android1:ems="10" >


            <requestFocus />
        </EditText>

        <NumberPicker
            android1:id="@+id/numberPicker1"
            android1:layout_width="wrap_content"
            android1:layout_height="wrap_content"
            android1:layout_below="@+id/textView1"
            android1:layout_marginLeft="242dp"
            android1:layout_toRightOf="@+id/textView5" />

    </RelativeLayout>

</ScrollView>
  • 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-18T01:40:40+00:00Added an answer on June 18, 2026 at 1:40 am

    Now I think you should read your requirements once more yourself. You already mentioned A and B, so obviously you have to use two containers (assuming you are sure, that Fragments aren’t a better choice). Why do you use only one?

    And only wrap the second container with a scrollview. If you put the ScrollView at the outer most level everything scrolls!

    Use an outer LinearView and give the inner containers some weights (the left one android:layout_weight="1" and the right one android:layout_weight="3"). Weights use any remaining space and distribute it according to their percentage of the toal weight. So in this case you have 25% and 75%.

    You should really read about those layouts. See the Android documentation about it or have a look at the blog Styling Android. If you cannot understand what the Eclipse layout editor generates, you won’t get desired results with it.

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

Sidebar

Related Questions

On image you can see screen, that I need to implement http://cs301703.userapi.com/u20441799/154158276/z_aadbf840.jpg I'm confused
i need to implement this layout in android..the view must be have two list
I need to implement Android application which will be expired after few days or
I need to implement an android broadcast style IPC - not dissimilar in concept
I am new to Android i need to implement buttons having the size of
Android Calendar App I need to be able to implement a view similar to
I need to implement the following: There is a table A which is supposed
i need to implement the email signature with image.As of now we only support
I am trying to implement the following: Please check the image here: The problem
I've got the following node in my XML layout: <com.x.y.view.TagLayout android:id=@+id/TagLayout android:layout_width=fill_parent android:layout_height=170dip />

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.