Material-BottomBarLayout
Material-BottomBarLayout copied to clipboard
Font style
How to apply style in text ?
@HiteshKanzariya07 Good suggestion, I will support it soon later.
@HiteshKanzariya07 Sorry, i forgot this library has this ability already. You can use BottomTabView.getTabTextView() to get the real TextView of title like this:
bottomBarLayout
.addTab(tab_home)
.addTab(tab_look)
.addTab(tab_mine)
.create(new BottomBarLayout.OnTabSelectedListener() {
@Override
public void onTabSelected(BottomTabView tab) {
Log.e(TAG, "onTabSelected: =="+tab.getTabPosition() );
+tab.getTabTextView().setTextSize(26);
}
@Override
public void onTabUnselected(BottomTabView tab) {
+tab.getTabTextView().setTextSize(16);
}
@Override
public void onTabReselected(BottomTabView tab) {
}
});