LinearLayout - Vertically not align?

Well your second linear layout is whats creating the trouble I guess for u, just remove that.

I need to keep it as there will be other stuff around it such as a title, but good point. – user864555 Jul 27 '11 at 5:26.

Its better to use RelativeLayout for such type of alignment, as RelativeLayout's concept says that it "reference" of a control.

You can use TableLayout instead of Your Second LinearLayout. And add a TableRow inside the TableLayout and in the row add four buttons.

TableLayout does the same if you put all your item in the same cell. Also, as I said I want to stay with LinearLayout because I will eventually add an unknown number of button by code. I don't know what's going to be show in those button, so I need to keep a simple way to display them as a flow.

Also, it will automatically adjust when the screen rotate. – user864555 Jul 27 '11 at 5:23.

If you want align them from top you can asign weight to them 1 for first button 4 for second button .5 for third and fourth button.

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