1

When working with NavigationView there is a tools:showIn="navigation_view" on its menu.xml file which make its preview turn into a hamburger menu style and not a regular Toolbar action item.

enter image description here

enter image description here

Is there any other value we can provide to showIn that is default to Android platform itself? I know we can also provide a layout but what I am looking for is its equivalent on other navigation view like BottomNavigationView.

Bitwise DEVS
  • 2,858
  • 4
  • 24
  • 67
  • 1
    AFAICT, that's the only one available currently. That value looks to be from [the `NavigationViewSceneView` class](https://cs.android.com/android-studio/platform/tools/adt/idea/+/mirror-goog-studio-main:designer/src/com/android/tools/idea/uibuilder/menu/NavigationViewSceneView.java;l=31), and that appears to be the only other one considered when creating the designer view: https://cs.android.com/android-studio/platform/tools/adt/idea/+/mirror-goog-studio-main:designer/src/com/android/tools/idea/uibuilder/scene/LayoutlibSceneManager.java;l=675?q=SHOW_IN_ATTRIBUTE_VALUE&ss=android-studio. – Mike M. Apr 10 '22 at 16:48
  • 1
    @MikeM. wow didn't know there is a tool like this. Thanks a lot – Bitwise DEVS Apr 10 '22 at 19:17

0 Answers0