Search code examples
androidandroid-jetpackandroid-architecture-navigationandroid-jetpack-navigation

android - Navigation graph Flow Preview in landscape


The navigation graph preview of Android jetpack components always shows a portrait view of screens for the screens in the layout editor. Can we customize this to view the screens on an emulator of our choice?


Solution

  • In Android Studio 4.1.1 it is possible to switch between screen orientations in the navigation graph preview screen by tapping o key (the letter 'O', not the number 0).