androidandroid-studioandroid-navigation-graphandroid-studio-4.1

How to switch fragment orientation on Navigation Graph in Android Studio


I added two fragments to a Navigation map in Android Studio and they appeared landscape.

I would like to switch them to portrait view to save view space. Can some help?

enter image description here


Solution

  • Just press the key O (not zero) on your keyboard. The orientation will change only after you move the cursor.