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
Android Support Library
compile 'com.android.support:design:25.0.0'
has come up with the newbottomnavigationview
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.