xain
xain

Reputation: 13839

Change style depending on orientation

is it possible to define a style for portrait orientation and another for landscape so when the device is rotated the change is automatic, or it has to be done programmatically ?

Thanks

Upvotes: 3

Views: 1008

Answers (1)

mitch
mitch

Reputation: 995

in your /res folder, make a new folder called layout-land and put your main.xml in there. it will switch to that layout for landscape.

Upvotes: 4

Related Questions