I’m making a list that display Phone Contact. It works but does not looks good in Landscape orientation since it just stretched out.
So I decided to make it two column while in Landscape and one column in Portrait. I can’t seem to find any reference by googling.
Is there any way to do it? It would be great if I just need to put custom XML in layout-land folder
Thanks
[UPDATE]
In Portrait it will be like this:
name 1
name 2
name 3
name 4
In Landscape:
name 1 name 2
name 3 name 4
Look into
Fragments http://developer.android.com/training/basics/fragments/index.htmlBasically you will have two layout folders for this, just like you suggested.
You’ll build your interface into
Fragments and place two of them in the landscape and one in portrait. For exampleres\layout\main.xml
res\layout-land\main.xml