Konvertieren Sie den Kotlin -Code in Java online
val bottomNavigationView = findViewById< BottomNavigationItemView(R.id.bottomNavigationView)
val navController = findNavController(R.id.fragment)
val appBarConfiguration = AppBarConfiguration(setOf(R.id.mainActivity, R.id.mainActivity2, R.id.mainActivity3, R.id.mainActivity4))
setupActionBarWithNavController(navController, appBarConfiguration)
bottomNavigationView.setupWithNavController(navController)
Calm Caribou