Posts

Showing posts with the label BottomBar in Android

BottomSlider like Uber

Image
I really like uber's Bottom Slider a lot and i want to create a view like that.After searching, I found a great library do it easily. Here is the screenshot of the sample. Step: 1 ====== Add below line to build.gradle file under app folder and sync compile 'com.github.lawloretienne:discreteslider:0.0.9' Credits to the Author of the Library. Etienne Lawlor Github Link  Step: 2 ====== create a layout like below activity_main.xml ============= <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android= "http://schemas.android.com/apk/res/android" xmlns:app= "http://schemas.android.com/apk/res-auto" android:id= "@+id/main_content" android:layout_width= "match_parent" android:layout_height= "match_parent" android:orientation= "vertical" > <FrameLayout android:id= "@+id/container"

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 = "@