I am not able to call a fragment onTabselect. there is no error but the fragment doesnt load. BottomBar bottomBar = (BottomBar) findViewById(R.id.bottomBar);
bottomBar.setOnTabSelectListener(new OnTabSelectListener() {
@Override
public void onTabSelected(@IdRes int tabId) {
if (tabId == R.id.tab_friends) {
Fragment selectedFragment = ItemOneFragment.newInstance();
I am not able to call a fragment onTabselect. there is no error but the fragment doesnt load. BottomBar bottomBar = (BottomBar) findViewById(R.id.bottomBar); bottomBar.setOnTabSelectListener(new OnTabSelectListener() { @Override public void onTabSelected(@IdRes int tabId) { if (tabId == R.id.tab_friends) { Fragment selectedFragment = ItemOneFragment.newInstance();