screen rotation android source code

Hello Guys. Welcome to our new tutorial of android screen rotation using android studio. simple click button for change screen orientation.

please follow the code given below to rotate your android screen.

  • First Create a new project in Android Studio
  • File ⇒ New Android ⇒ Application Project
  • Then Open src -> package -> MainActivity.java and then add following code :

JAVA (MainActivity.java)

 

XML (activity_main.xml)

 

screen rotation android screen rotation android

Leave a Reply

Your email address will not be published. Required fields are marked *