问题
how can rotate the particular view in Landscape or portrait mode in dynamically in android. i am using the this method
setRequestedOrientation (ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
but it total layout going to landscapmode .but i want particular view in landscape mode. so,please tell me anyone known .Advance thanks to all
回答1:
Following is code which i used to display your activity into landscape mode
<activity android:screenOrientation="landscape"
android:configChanges="orientation|keyboardHidden"
android:name="yourActivty"/>
Change it according to your need
来源:https://stackoverflow.com/questions/26293222/how-can-i-rotate-the-particular-view-landscape-or-portrait-programatically-in-an