How to set orientation in two different mode , in two layout?

前端 未结 4 1260
猫巷女王i
猫巷女王i 2021-01-07 17:26

I have layout that is called Main.XML and I set the orientation to portrait in my AndroidManifest.xml. I designed this layout for Honeycomb too and

4条回答
  •  一向
    一向 (楼主)
    2021-01-07 17:54

    In AndroidManifest insert the following code in whichever activity you want to run in landscape mode(In this case Main Activity)

    android:screenOrientation="landscape"
    

提交回复
热议问题