How do I change the orientation of Android manifest?

Nguyễn Pháp

New member
How do I change the orientation of Android manifest?
Answer
Android can be restricted to not switch the screen to landscape when rotated. Open the AndroidManifest.xml file, in the activity declaration element add the attribute screenOrientation and set it to portrait. The screen will no longer rotate when the device is turned.
 

Tìm kiếm

Back
Top