Bottom Navigation view is not detecting item selected
Im trying to make a bottom navigation view to control which fragment is displayed but the navigation view didn't detect any item selected. Here is my Activity Code :
val fragmentMore = MoreMenuFragment()
val fragmentTransactionHistory = TransactionHistoryFragment()
val fragmentLicenseList = DaftarLisensiFragment()
replaceFragment(fragmentTransactionHistory)
binding.mainNavigationView.setOnItemSelectedListener {
when (it.itemId) {...