The main problem is that the menu bar is not displayed in my layout file. I’ve done a few searches but haven’t been able to find a solution or a reason as to why it is behaving this way. Any help would be appreciated. Thanks. my menu file XML my layout file Where am I doing wrong? I checked some
Tag: navigation
Activity does not have a NavController set on
I basically set up 3 fragments for my bottom navigation view with all linked to activity.xml activity.xml where I put fragment tag. My Activity.java code (specifically): The problem now is that if I run that same java code using fragment tag in xml, it runs well but suggests I use <androidx.fragment.app.FragmentContainerView(linters) but on using <androidx.fragment.app.FragmentContainerView, it displays the error in
Starting a new activity on navigation drawer item click
I know this is a question frequently asked, but after reading the many questions and solutions on stack overflow I am confused. I am confused with regards to Fragments and what is required to start an activity from clicking an item in the navigation drawer. I’ve checked these posts but only got confused Q1, Q2 Could someone please explain what