Android - How to add bottom navigationbar in all activities

2.3k views Asked by At

I have an application at present with main activity. i need to add navigationbar at bottom. am planning to have three things in this navigationbar (home, help, settings). now i have leaned to add navigationbar with fragments from http://www.truiton.com/2017/01/android-bottom-navigation-bar-example/

but it works only with fragments. my need is that when i click home i need to go to MainActivity page and also this drawer should be there in all activities

1

There are 1 answers

1
Aman Verma On

Android Support Library compile 'com.android.support:design:25.0.0' has come up with the new bottomnavigationview which i think is what you need.

Refer to this link https://androidresearch.wordpress.com/2016/10/29/android-bottomnavigationview-example/

It shows bottomnavigationview with three fragments. Properly read the whole blog and you can customize on your own as needed.