91-9990449935 0120-4256464 |
Android Screen Orientation ExampleThe screenOrientation is the attribute of activity element. The orientation of android activity can be portrait, landscape, sensor, unspecified etc. You need to define it in the AndroidManifest.xml file. For example: The common values for screenOrientation attribute are as follows:
Android landscape mode screen orientation exampleactivity_main.xmlFile: activity_main.xml
Activity classFile: MainActivity.java
AndroidManifest.xmlFile: AndroidManifest.xml
Output:
Next TopicAndroid UI Widgets Tutorial
|