Stopping orientation change with side-keyboard (Android)
-
09-10-2019 - |
Question
I am wondering how I can make the orientation of the screen permanent, even when the phone has a slide-out keyboard. This is the code I have:
<activity android:name=".AppName" android:label="@string/app_name"
android:screenOrientation="portrait">
Thanks.
Solution
Try adding:
android:configChanges="orientation|keyboardHidden"
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow