All Projects → jaisonfdo → Bottomnavigation

jaisonfdo / Bottomnavigation

A sample app for Bottom Navigation View with ViewPager in Android

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Bottomnavigation

Expandingpager
ExpandingPager is a card peek/pop controller
Stars: ✭ 1,906 (+1927.66%)
Mutual labels:  fragments, viewpager
Nested Fragments
Samples of nested fragments in various widgets (TabHost, ViewPager)
Stars: ✭ 115 (+22.34%)
Mutual labels:  fragments, viewpager
Simple Stack
[ACTIVE] Simple Stack, a backstack library / navigation framework for simpler navigation and state management (for fragments, views, or whatevers).
Stars: ✭ 1,012 (+976.6%)
Mutual labels:  fragments
Verticalviewpager
Vertically ViewPager and vertically transformer for Android.
Stars: ✭ 1,233 (+1211.7%)
Mutual labels:  viewpager
Stackpagetransformer
A PageTransformer for ViewPager to show as stack!!!
Stars: ✭ 67 (-28.72%)
Mutual labels:  viewpager
React Native Step Indicator
A simple react-native implementation of step indicator widget compatible with the ViewPager and ListView.
Stars: ✭ 1,054 (+1021.28%)
Mutual labels:  viewpager
Collapsingrefresh
AppBarLayout+ViewPager+RecyclerView的刷新功能
Stars: ✭ 69 (-26.6%)
Mutual labels:  viewpager
React Apollo Decorators
Better decorators for Apollo and React
Stars: ✭ 39 (-58.51%)
Mutual labels:  fragments
Bannerlayout
Support unlimited picture rotation BannerLayout, the minimum implementation of the code banner
Stars: ✭ 92 (-2.13%)
Mutual labels:  viewpager
Materialviewpager
A Material Design ViewPager easy to use library
Stars: ✭ 8,224 (+8648.94%)
Mutual labels:  viewpager
Magicindicator
A powerful, customizable and extensible ViewPager indicator framework. As the best alternative of ViewPagerIndicator, TabLayout and PagerSlidingTabStrip —— 强大、可定制、易扩展的 ViewPager 指示器框架。是ViewPagerIndicator、TabLayout、PagerSlidingTabStrip的最佳替代品。支持角标,更支持在非ViewPager场景下使用(使用hide()、show()切换Fragment或使用setVisibility切换FrameLayout里的View等),http://www.jianshu…
Stars: ✭ 8,969 (+9441.49%)
Mutual labels:  viewpager
Verticalviewpager
A vertical scroll ViewPager implementation. Use with scrollable views(ListView, ScrollView, RecyclerView).
Stars: ✭ 64 (-31.91%)
Mutual labels:  viewpager
Material About Library
Makes it easy to create beautiful about screens for your apps
Stars: ✭ 1,099 (+1069.15%)
Mutual labels:  fragments
Recyclerpager
Using RecyclerView and SnapHelper replace ViewPager
Stars: ✭ 73 (-22.34%)
Mutual labels:  viewpager
Smsretrieverapimaster
Automatic SMS Verification with the SMS Retriever API
Stars: ✭ 48 (-48.94%)
Mutual labels:  fragments
Androidanimationexercise
Android 动画各种实现,包括帧动画、补间动画和属性动画的总结分享
Stars: ✭ 1,254 (+1234.04%)
Mutual labels:  viewpager
Concentriconboarding
Android Concentric Onboarding library
Stars: ✭ 42 (-55.32%)
Mutual labels:  viewpager
Navigationviewfragmentadapters
A small library containing two adapters which allow for easy fragment management with a NavigationView.
Stars: ✭ 62 (-34.04%)
Mutual labels:  fragments
Android Tab Animation
Easily create TabLayout.Tab animations that sync with the scrolling progress of ViewPager
Stars: ✭ 68 (-27.66%)
Mutual labels:  viewpager
Viewpagerindicator
A Simple View Pager Indicator with animations
Stars: ✭ 94 (+0%)
Mutual labels:  viewpager

BottomNavigation

A sample app for Bottom Navigation View with ViewPager ScreenShot

For connecting BottomNavigationView with ViewPager, you need to follow thesesteps

  1. First, you need to create an application with latest Design Support Library(25) to your build.gradle to use BottomNavigationView.

  2. Then add all the necessary resources ( color, drawable’s ) to the resource directory.

  3. Create a view with ViewPager and BottomNavigationView

  4. Create necessary fragments for each tab on the viewpager.

  5. Then setup the viewpager using fragments and viewpager adapter.

  6. Add OnNavigationItemSelectedListener for BottomNavigationView, and override OnNavigationItemSelected method with the relevant action.

  7. Once done with the previous step add OnPageChangeListener to the ViewPager and override the PageSelected method. The magic happens here, the following code selects the relevant item in the BottomNavigationView.

@Override
    public void onPageSelected(int position) {
        if (prevMenuItem != null) {
            prevMenuItem.setChecked(false);
        }
        else
        {
            bottomNavigationView.getMenu().getItem(0).setChecked(false);
        }
       
        bottomNavigationView.getMenu().getItem(position).setChecked(true);
        prevMenuItem = bottomNavigationView.getMenu().getItem(position);
    }
 

For more information, check out my detailed guide here : http://droidmentor.com/bottomnavigationview-with-viewpager-android

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].