I am new in android my objective is that I have two different layouts one for vertical position and second one is for landscape position.
How can I use it.
I am new in android my objective is that I have two different layouts one for vertical position and second one is for landscape position.
How can I use it.
And it works!
You should read android article about Supporting multiple screens. They will show you there how to use resources to get this behavior.
Just put layout for vertical screen in layout folder in res and layout for landscape screen in layout-land with same name.
if layout-lan does not exist just create it.