Android - Navigation Graph preview screen orientation

350 Views Asked by At

For some reason the navigation graph preview changed all the screen orientation of its fragment. Unfortunately I see no settings or way to change its orientation and get stuck. I am using Android Studio Dolphin Canary 7. How can I change the previews screen orientation back to portrait? Thank you

enter image description here

2

There are 2 best solutions below

1
On

You have to press the letter "o" to switch between screen orientations in the navigation graph preview screen.

0
On

You just need to change any one of your layout file to phone inside Device for Preview option then those changes will automatically reflect on your nav graph.

You can change as below image

preview