Posts

Showing posts with the label BottomBar

BottomBar in android

Image
I have created BottomBar example using this beautiful library. https://github.com/roughike/BottomBar Credits :  Iiro Krankka Step: 1 ====== Add this library to your gradle file 1 2 3 dependencies { compile ' com . roughike : bottom - bar: 1.2 . 4 ' } Step: 2 ====== Now create menu folder under res folder. res/menu/bottombar_menu.xml 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 <? xml version = "1.0" encoding = "utf-8" ?> < menu xmlns: android = "http://schemas.android.com/apk/res/android" > < item android: id = "@+id/nav_home" android: icon = "@drawable/ic_home_white_24dp" android: title = "Home" /> < item android: id = "@+id/nav_fav" android: icon = "@drawable/ic_favorite_white_24dp" android: title = "Favourites" /> < item android: id = "@