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
Post a Comment