Skip to content Skip to sidebar Skip to footer

How Can I Rotate The Particular View Landscape Or Portrait Programatically In Android?

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_LAND

Solution 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

Post a Comment for "How Can I Rotate The Particular View Landscape Or Portrait Programatically In Android?"