Bottombar: Set selected item programmatically

Created on 29 Mar 2016  路  5Comments  路  Source: roughike/BottomBar

I'm checking the methods of this library but don't see nothing about selecting the active item programmatically. Is there any way to achieve this?

Thanks and keep up the good work!

Most helpful comment

// The "0" in this case is the first tab, and "false" indicates if there should be animation or not.
mBottomBar.selectTabAtPosition(0, false);

All 5 comments

// The "0" in this case is the first tab, and "false" indicates if there should be animation or not.
mBottomBar.selectTabAtPosition(0, false);

Would love to see this on the home page docs :)

Yeah this should definitely be on the home page.

@OkySabeni @befitdonate thanks for the feedback

It seems it can be done using :

mBottombar.selectTabWithId(R.id.tab_outbox);

As selectTabAtPosition has now private scope

Was this page helpful?
0 / 5 - 0 ratings

Related issues

LiuDeng picture LiuDeng  路  5Comments

cmonfortep picture cmonfortep  路  5Comments

MansoorJafari picture MansoorJafari  路  5Comments

Hiike picture Hiike  路  4Comments

tinybright picture tinybright  路  3Comments