EditText and Button on the same line with Textiew underneath?

Posted by Kevin on Stack Overflow See other posts from Stack Overflow or by Kevin
Published on 2011-01-09T02:46:19Z Indexed on 2011/01/09 2:54 UTC
Read the original article Hit count: 178

Filed under:

Hi, I am trying to have an EditText widget next to a button with a text view underneath. The EditText should resize and fill the screen accordingly, while the button's width is always only what it needs to be by setting the width to wrap_content.

The layout should not be relative. Below is the code I have so far some of which was found here on StackOverflow. Removing the text view gives the desired appearance for the EditText and button, but when the TextView is added the view goes to ... well.

Not sure why the code is not showing? I put it into a < code>< pre> block without success.

http://pastebin.com/WgH6qrTm

    

    
    
    
    
    

  

© Stack Overflow or respective owner

Related posts about android