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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T00:37:12+00:00 2026-05-26T00:37:12+00:00

I want a screen to look like this: ![What I want to see]https://i.stack.imgur.com/E5L4g.png And

  • 0

I want a screen to look like this:

![What I want to see]https://i.stack.imgur.com/E5L4g.png

And I wrote the following code to get something similar:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
 <ScrollView
   android:layout_width="fill_parent"
   android:layout_height="fill_parent"
   android:layout_weight="1"
   android:fillViewport="true">
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >
        <EditText 
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:id="@+id/txtSendMail"
            android:layout_gravity="center"
            android:padding="10dip"
            android:text="mail@gmail.com">
        </EditText>
        <EditText 
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:id="@+id/txtSubjectMail"
            android:layout_gravity="center"
            android:padding="10dip"
            android:text="Escriba un asunto"
            >
        </EditText>
        <EditText 
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:id="@+id/txtBodyMail"
            android:layout_gravity="top"
            android:padding="10dip"
            android:text="Escribe el mensaje aquí."
            android:inputType="textMultiLine">
        </EditText>

        <Button
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:id="@+id/btnSendMail"
            android:text="Send" >
        </Button>
    </LinearLayout>
</ScrollView>

But when I wrote the EditText that will contain the body of the mail, I put
android:inputType=”textMultiLine”
android:layout_height=”fill_parent”

I can’t see the button. I’m sure that the EditText that “fills” parent is hiding it, but I don’t know what property to set if I want the EditText to be as big as the rest of the Screen…

Thank you!

  • 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-26T00:37:12+00:00Added an answer on May 26, 2026 at 12:37 am

    I’ve modified your xml a bit. I think your body edittext should scroll and not the whole layout. So I removed the scrollview. Here is the xml

    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:orientation="vertical"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent">
            <EditText 
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:id="@+id/txtSendMail"
                android:padding="10dip"
                android:text="mail@gmail.com">
            </EditText>
            <EditText 
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:id="@+id/txtSubjectMail"
                android:padding="10dip"
                android:text="Escriba un asunto"
                >
            </EditText>
            <EditText 
                android:layout_width="fill_parent"
                android:layout_height="0dip"
                android:layout_weight="1.0"
                android:id="@+id/txtBodyMail"
                android:padding="10dip"
                android:text="Escribe el mensaje aquí."
                android:inputType="textMultiLine">
            </EditText>
    
            <Button
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:id="@+id/btnSendMail"
                android:layout_gravity="center_horizontal"
                android:text="Send" >
            </Button>
    </LinearLayout>
    

    If you want it as earlier, you can use your own xml just notice the body edittext attributes should be

    layout_height="0dip"
    layout_weight="1.0"
    

    This tells the parent that this view should take the remaining space after all the other child views.

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

Sidebar

Related Questions

I want to make a layout similar to this one: www.ImageBanana.net - layout.png http://www.imagebanana.com/img/9kmlhy66/thumb/layout.png
I want a layout like this. Please take a look the image As you
i need to create a login screen in android that will look like this.
I want to detect users' screen size and pass this into a charting application
I want to capture the screen in my code to get an image -
I want to build a navigation screen, just like installation shields has (next/previous stuff),
I have 3 columns that look something like this: <div style=width:900px;margin:0 auto id=container> <div
I'm writing an app that would look like gmail. In fact I want to
I have a log file that has lines that look like this: 1,2546857-23541,f_last,user,4:19 P.M.,11/02/2009,START,27,27,3,c2546857-23541,
I have Four EditText with different background. It looks like this: I want 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.