How can I make the bottom Navigation bar appear on selected activities and don't appear on others ? What lines should I add to make it happen
Asked
Active
Viewed 1,500 times
1 Answers
0
bottom Navigation bar is also a view in your some layout file, you could do like this:
setContentView(R.layout.activity_main);
BottomNavigationView bottomNavigationView = (BottomNavigationView)
findViewById(R.id.navigation);
bottomNavigationView.setVisibility(View.INVISIBLE); //In activity you want to hide it
bottomNavigationView.setVisibility(View.VISIBLE); //In activity you want to show it

navylover
- 12,383
- 5
- 28
- 41
-
Thanks for the help – Abdullah Ali Sep 13 '18 at 18:30
-
you are welcome, could you upvote or accept my answer, thanks! – navylover Sep 13 '18 at 22:30