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

  • Home
  • SEARCH
  • 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 956667
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T00:34:34+00:00 2026-05-16T00:34:34+00:00

As the title says, every time I put a TextView before an EditText element

  • 0

As the title says, every time I put a TextView before an EditText element in a LinearLayout, the EditText does not show. When I don’t, it does.

I’ve narrowed the problem down to the TextView’s layout_width attribute. If I give it “wrap_content”, it works, but doesn’t “block” down, and it appears on the same line as the EditText.

 <?xml version="1.0" encoding="utf-8"?>
<LinearLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:background="#FFFFFFFF"
  >

<TextView
    android:text="Test"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    />


  <EditText 
            android:id="@+id/marketValLow"
            android:layout_width="fill_parent"
            android:layout_height="35px"
            android:singleLine="true"
            android:layout_marginLeft="5px"
            android:layout_marginRight="5px"
            android:layout_marginTop="5px" /> 


</LinearLayout>

Any ideas? Thanks!

  • 1 1 Answer
  • 1 View
  • 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-16T00:34:35+00:00Added an answer on May 16, 2026 at 12:34 am

    It sounds like you’re after a vertical orientation to have the TextView above the EditView. LinearLayout defaults to horizontal.

    So add android:orientation="vertical" to your LinearLayout definition.

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

Sidebar

Related Questions

TypeError: $().html(This dialog will show every time!).dialog is not a function This is the
As the title says, I'm running multiple game servers, and every of them has
As the title says. My UIViewController will not rotate no matter what. When it
Like the title says, how do I redirect every url that starts with http://example.com/shop
I don't know why every time I try to include my header using PHP’s
As title says, this issue happens in MS Access 2003 SP1. Does anyone know
As the title says, I would like to update this ajax fetch every x
As the title says, I am searching a very tiny rich text editor. Every
Like the title says; how do I load every file in a directory? I'm
Title says all. Sample code: ArrayList<HashMap<String, Object>> data = new ArrayList<HashMap<String, Object>>(); HashMap<String, Object>

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.