Android: alternate layout xml for landscape mode

后端 未结 6 514
故里飘歌
故里飘歌 2020-11-22 08:54

How can I have one layout for landscape and one for portrait? I want to assume extra width and conserve vertical space when the user rotates the phone over sideways.

6条回答
  •  醉酒成梦
    2020-11-22 09:25

    You can group your specific layout under the correct folder structure as follows.

    layout-land-target_version

    ie

    layout-land-19 // target KitKat

    likewise you can create your layouts.

    Hope this will help you

提交回复
热议问题