How can I layout two buttons to be the same size?

Three options: Put this in a TableLayout instead of the nested LinearLayout thing you are currently doing Change your nesting from a vertical parent with horizontal children to a horizontal parent with vertical children (however, this opens up possible vertical positioning issues, so I don't favor this option) Use a RelativeLayout and all of the layout_* attributes that RelativeLayout children have available to them I'd favor option 1, personally.

Thanks for the tip, but how can I get the edittext to fill the remaining part of the screen – slayton Sep 15 at 1:53.

You can use specific width and height for laout_width/layout_height, as in layout_width="150dip". You run the risk of having a button that can't fit all your text though, but if your text is fixed, you can double check to make sure it's all good.

The trick is to combine the tableview defined in the edit above with a strechColumn tag.

The layout definition is below. Basically I want the two buttons to be the same width, but right now their width is determined by the string they display, is there a better way to lay this out such that the buttons are the same width and that the Button+EditText combo fills the width of the screen? I've tried using a TableLayout as was suggested below, but now the EditText's don't fill the remaining portion of the screen.

See the image and layout below.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions