• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Column layout

Greum

Well-Known Member
I have the following layout which is fine for portrait layout on a mobile. For landscape mode I want to have the two columns side by side (even though they are a different length). I'm wondering what the best way to achieve this would be. (If it was a web page I would use CSS columns but I'm not sure there is an Android equivalent.)
 
You can easily use a constraint layout to achieve this .....how to setup a constraint layout is beyond the scope of this thread. You can easily search for constraint layout.
 
Thanks for your quick response. I meant to include my XML file - der! As it happens I'm using constraint layout at present and I figured I could simply change the start constraint for each element in the second column. I was just wondering if there was a better way. I guess from your response there probably isn't!
 
Back
Top Bottom