You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in your Activity's Oncreate---
bottom_navigation_bar.setOnTabSelectListener(this);
bottom_navigation_bar.setOnTabReselectListener(this);
then:
public void onTabSelected(@idres int tabId) {
if (bottom_navigation_bar.getRootView().findViewById(tabId).isPressed()){
switch (tabId) {
case R.id.tab_home:
break;
case R.id.something:
break;
case R.id.something:
break;
case R.id.something:
break;
}
}
}
and put first tab on "onTabReSelectedmethod" @OverRide
public void onTabReSelected(int tabId) {
switch (tabId) {
case R.id.tab_home:
break;
}
}
Is it possible to prevent the first tab from being selected until user tabs/clicks to select?
The text was updated successfully, but these errors were encountered: