xxxxxxxxxx
Menu > Tools > Kotlin > Show Kotlin Bytecode
Click on the Decompile button
Copy the java code
Also with a recent version (1.2+) of the Kotlin plugin you also can directly
do Menu > Tools > Kotlin -> Decompile Kotlin to Java.
xxxxxxxxxx
private fun setupSmoothBottomMenu() {
val popupMenu = PopupMenu(this, null)
popupMenu.inflate(R.menu.menu_bottom)
val menu = popupMenu.menu
binding.bottomBar.setupWithNavController(menu, navController)
}