Fix Screen Orientation in Android Studio.
Screen Orientation in Android is an important topic When we Working on Application same time we want Screen Orientation to be fixed, That is when the user rotates the phone the must not change to Portrait mode or Landscape mode. Fixing the Screen Orientation is very simple you need to add a simple code in Android Manifest.xml file.Let's see the code.
android:screenOrientation="portrait"
past this code in between activity and intent-filter.
Run the Program.
Rotate the Screen. Screen will be fixde.
For Landscape Screen just change Portraite to Landscape.
Run the program.
Now the Screen is fixed to Landscape mode.
Hope this post is helpful, for a more useful post like and share with your friends, we also have Youtube channel for more details check out the video below, do like share and subscribe to our channel it will boost our energy and help to improve our work, Have Nice Day.
Subscribe:
https://www.youtube.com/channel/UCwCHDr8s5u-ZWCv7djmsVEg
Fix Screen Orientation in Android Studio.
Reviewed by gcrt
on
August 31, 2018
Rating:

“Nice Post. It’s really a very good article. I noticed all your important points. Thanks"
ReplyDeleteFix Phone Screen