0 votes
in Android by
Android Screen Orientation Example

1 Answer

0 votes
by
The 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.

Syntax:

<activity android:name="package_name.Your_ActivityName"  

      android:screenOrientation="orirntation_type">  

</activity>

Related questions

0 votes
0 votes
asked Oct 5, 2019 in Android by pranay jain
0 votes
asked Jan 1 in Android by DavidAnderson
...