Bottombar: Is there a way to select a tab dynamically?

Created on 8 Jul 2017  路  2Comments  路  Source: roughike/BottomBar

For example I would like to select the 3rd tab instead of the first one in onCreate

Most helpful comment

Yes , you can do that by writing this code in your Activity

 `bottomBar.setDefaultTab(R.id."YOUR_TAB_ID");`

Hope this helped

All 2 comments

Yes , you can do that by writing this code in your Activity

 `bottomBar.setDefaultTab(R.id."YOUR_TAB_ID");`

Hope this helped

@burhanshakir you can use "performClick()" in the 3rd tab.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yerenutku picture yerenutku  路  4Comments

Nolanus picture Nolanus  路  4Comments

javiersantos picture javiersantos  路  5Comments

zhangzhzh picture zhangzhzh  路  7Comments

LOG-TAG picture LOG-TAG  路  5Comments