All you need is a portrait screen orientation. I screenOrientation parameter in the <activity> element in the manifest:
android:screenOrientation="portrait" As a result, when the genymotion emulator is rotated, the application still moves from portrait orientation to landscape and back. What am I doing wrong? :)
I want to add that activity_main.xml contains AppBar and FrameLayout , which displays a fragment. Not only is this important :)
android:configChanges="orientation"- Serodv