android - Tablet devices loading wrong orientation -


my app uses 1 page main activity , in manifest set not allow rotation hence orientation stays same wether or not rotate device. on tablets when user in landscape orientation , runs app. app loads default orientation (portrait) in landscape view instead , im seeing half screen. help. part of activity in manifest use nosensor disable rotation.

<activity         android:name="com.paul.xicon.mainactivity"         android:windowsoftinputmode="adjustpan"         android:label="@string/app_name"         android:screenorientation="nosensor"> 

i'm not sure how disabling screen rotation. should work fine in activity tag of manifest.

android:screenorientation="landscape" (disables screen-rotation & restricts landscape mode)  or,  android:screenorientation="portrait" (disables screen-rotation & restricts portrait mode) 

Comments

Popular posts from this blog

ios - Memory not freeing up after popping viewcontroller using ARC -

Django REST Framework perform_create: You cannot call `.save()` after accessing `serializer.data` -

Why does Go error when trying to marshal this JSON? -