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> & lt; Activity Android: Screen Orientation = "Landscape" Android: configChanges = "orientation-keyboardHidden" android: name = "yourActivty" />

Change it to your requirement

Comments

Popular posts from this blog

Out of index C/C++ -

regex - PatternSyntaxException: while using String.ReplaceAll function in java? -

java - Projects which are accessed via multiple (different) IDEs: Ant or Maven? -