How can i rotate the particular view landscape or portrait programatically in android? -
On Android, you can dynamically rotate special views in landscape or portrait mode. I am using this method
setRequestedOrientation (ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
But it's going to be on the total layout landscapmode. But I want to look in special scenario mode. So, please tell me anyone. Thanks to all
The following code that I used to display in Activity Landscape mode < Pre> Change it to your requirement & lt; Activity Android: Screen Orientation = "Landscape" Android: configChanges = "orientation-keyboardHidden" android: name = "yourActivty" />
Comments
Post a Comment