How To Set Landscape In Android Studio

[Solved] How To Set Landscape In Android Studio | C - Code Explorer | yomemimo.com
Question : how to set landscape in android studio

Answered by : panos-karamolegkos

in the manifest, set as attribute of the node activity the code below:
android:screenOrientation="landscape"
Also, in you MainActivity Class, inside the onCreate method, after the super call type:
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);

Source : | Last Update : Tue, 01 Dec 20

Answers related to how to set landscape in android studio

Code Explorer Popular Question For C