Search in sources :

Example 6 with OnTabSelectListener

use of com.roughike.bottombar.OnTabSelectListener in project BottomBar by roughike.

the class ThreeTabsQRActivity method onCreate.

@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_three_tabs_quick_return);
    BottomBar bottomBar = (BottomBar) findViewById(R.id.bottomBar);
    // We're doing nothing with this listener here this time. Check example usage
    // from ThreeTabsActivity on how to use it.
    bottomBar.setOnTabSelectListener(new OnTabSelectListener() {

        @Override
        public void onTabSelected(@IdRes int tabId) {
        }
    });
}
Also used : BottomBar(com.roughike.bottombar.BottomBar) OnTabSelectListener(com.roughike.bottombar.OnTabSelectListener)

Aggregations

OnTabSelectListener (com.roughike.bottombar.OnTabSelectListener)6 BottomBar (com.roughike.bottombar.BottomBar)5 OnTabReselectListener (com.roughike.bottombar.OnTabReselectListener)4 FragmentTransaction (android.app.FragmentTransaction)1 DiscoveriesFragment (com.astronauts.astronaut.gui.fragment.impl.DiscoveriesFragment)1 MikroblogFragment (com.astronauts.astronaut.gui.fragment.impl.MikroblogFragment)1 MojWykopFragment (com.astronauts.astronaut.gui.fragment.impl.MojWykopFragment)1 ProfileFragment (com.astronauts.astronaut.gui.fragment.impl.ProfileFragment)1 SettingsFragment (com.astronauts.astronaut.gui.fragment.impl.SettingsFragment)1 BottomBarTab (com.roughike.bottombar.BottomBarTab)1