Posts

Showing posts with the label android bottom bar

BottomNavigation in Android Using Support Library

Image
Step: 1 ====== Add latest support library to build.gradle file under app folder compile 'com.android.support:design:25.0.0' Step: 2 ====== create an xml file under menu folder for the bottom navigation. bottom_bar_menu.xml <?xml version="1.0" encoding="utf-8"?> <menu xmlns:android= "http://schemas.android.com/apk/res/android" xmlns:app= "http://schemas.android.com/apk/res-auto" > <item android:id= "@+id/action_hotnews" android:enabled= "true" android:icon= "@drawable/ic_whatshot_white_24px" android:title= "@string/news" app:showAsAction= "ifRoom" /> <item android:id= "@+id/action_movies" android:enabled= "true" android:icon= "@drawable/ic_movie_white_24px" android:title= "@string/movies" app:showAsAction= "ifRoom" /> &l

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

How to create a bottom bar in android

Image
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android= "http://schemas.android.com/apk/res/android" android:id= "@+id/RelativeLayout01" android:layout_width= "match_parent" android:layout_height= "match_parent" > <-- <ListView android:id= "@+id/listview1" android:layout_width= "match_parent" android:layout_height= "match_parent" android:layout_above= "@+id/bottombar" android:fastScrollEnabled= "true" > </ListView> --> <LinearLayout android:id= "@+id/bottombar" style= "?android:buttonBarStyle" android:layout_width= "match_parent" android:layout_height= "wrap_content" android:layout_alignParentBottom= "true" android:divider= "?android:dividerVertical" a

Android Bottom Tabs with ViewPagerIndicator Libary

Image
Hello, In previous post, I have used ViewPagerIndicator Libary from JakeWharton with ActionBarCompat Libary. We Can Place Tabs in the bottom in android through VPI Library. Android Design Guideliness suggests tabs must in the top. But this is not a recommended. This is the ScreenShot of the app Source code will be updated soon in the Dropbox