Bottombar: how to change tab title at run-time?

Created on 16 Dec 2016  路  2Comments  路  Source: roughike/BottomBar

Currently the only way I can find to change the tab title at run-time is use the undocumented ID for the textView:

TextView titleView = (TextView) myTab.findViewById(R.id.bb_bottom_bar_title);
titleView.setText(title);

Is there some way to do this that doesn't rely on undocumented features?
If not, could a method by added such as BottomBarTab.getTitleView()?

Most helpful comment

The methods actually exist in the BottomBarTab class, but their have package visibility.

I have the same issue with the tab icon.

Could you make those methods public?

All 2 comments

The methods actually exist in the BottomBarTab class, but their have package visibility.

I have the same issue with the tab icon.

Could you make those methods public?

@huttarl Thanks for the undocumented way for changing the tab title!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vikramkakkar picture vikramkakkar  路  3Comments

giautm picture giautm  路  4Comments

MansoorJafari picture MansoorJafari  路  5Comments

lamba92 picture lamba92  路  5Comments

javiersantos picture javiersantos  路  5Comments