Rotate a control in android -
i create control signature of user , returns me bitmap signature , print receipt.
so have activity supports portrait orientation , need when show signature control, in landscape mode. can´t use other activity because app ask login if user lost focus of first activity , need signature part of transaction.
i don't know if can rotate controls simulate landscape orientation , didn't find information this.
*i have show control in landscape , control use screen.
hi may help...
if want screen in portrait..
in manifest android:screenorientation="portrait"
or in coding setrequestedorientation(activityinfo.screen_orientation_portrait);
if want screen in landscape..
in manifest android:screenorientation="landscape"
or in coding setrequestedorientation(activityinfo.screen_orientation_landscape);
if activity don't want restart every time while changing orientation of mobile try below line in manifest..
<activity android:name="your activity" android:configchanges="keyboard|keyboardhidden|orientation|screenlayout|uimode|screensize|smallestscreensize" android:windowsoftinputmode="adjustpan"/>
Comments
Post a Comment