Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Landscape orientation file not running

I created a landscape file by clicking create landscape variation. When I run the emulator, the landscape file did not run at all, however, it’s recognized in the design tab between portrait and landscape option.

This is my first time following a tutorial to create a landscape version of my app, should I write some code in the android manifest or my main to detect the orientation change?

Edit: I’m expecting the app to run the portrait file when it’s portrait and landscape file when it’s landscape

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

My project files

enter image description here

enter image description here

>Solution :

1.You can turn on auto rotate feature from your phone or emulator.

2.if you want to use landscape mode only then specify that on
your manifest file like this

  <activity
        android:name=".ui.VideoList"
        android:screenOrientation="landscape"
        android:parentActivityName=".ui.yb.MainActivity"
        />
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading