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

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -