Title hiding over time when tabs are pressed
See original GitHub issueWhile pressing the tabs the titles start to hide slowly over time, the more the tabs are pressed, the more the titles continue hide…
bottom_bar_tabs.xml
`<?xml version="1.0" encoding="utf-8"?> <tabs> <tab id="@+id/tab_miembro" title="@string/tab_miembro" barColorWhenSelected="@color/colorPrimary" icon="@drawable/ic_account_box_white" activeColor="@color/white"/>
<tab
id="@+id/tab_grupo"
title="@string/tab_grupo"
barColorWhenSelected="@color/colorPrimary"
icon="@drawable/ic_account_balance_white_18dp"
activeColor="@color/white"/>
<tab
id="@+id/tab_discipulos"
title="@string/tab_discipulos"
barColorWhenSelected="@color/colorPrimary"
icon="@drawable/ic_wc_white_24dp"
activeColor="@color/white"/>
</tabs>`
bottombar.xml
<?xml version="1.0" encoding="utf-8"?> <com.roughike.bottombar.BottomBar xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="@dimen/bottombar_height" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/bottombar" android:layout_alignParentBottom="true" android:layout_gravity="bottom|end" app:bb_inActiveTabColor="@android:color/white" app:bb_activeTabColor="@android:color/white" app:bb_tabXmlResource="@xml/bottom_bar_tabs"/>
MainActivity.java
`BottomBar bottomBar = (BottomBar) findViewById(R.id.bottombar); bottomBar.setDefaultTab(R.id.tab_miembro);
bottomBar.setOnTabSelectListener(new OnTabSelectListener() { @Override public void onTabSelected(@IdRes int tabId) { switch (tabId) { case R.id.tab_miembro: MiembroFragment miembroFragment = new MiembroFragment(); miembroFragment.setArguments(bundle); getSupportFragmentManager().beginTransaction().replace(R.id.container, miembroFragment) .setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE) .addToBackStack(null).commit(); break; case R.id.tab_grupo: GrupoFragment grupoFragment = new GrupoFragment(); grupoFragment.setArguments(bundle); getSupportFragmentManager().beginTransaction().replace(R.id.container, grupoFragment) .setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE) .addToBackStack(null).commit(); break; case R.id.tab_discipulos: DiscipulosFragment discipulosFragment = new DiscipulosFragment(); discipulosFragment.setArguments(bundle); getSupportFragmentManager().beginTransaction().replace(R.id.container, discipulosFragment) .setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE) .addToBackStack(null).commit(); break; } } });`
I’m using ‘com.roughike:bottom-bar:2.0.2’ in graddle… and icons without padding…

Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:8

Top Related StackOverflow Question
The icons must be fully opaque, solid black color, 24dp and with no padding. For example, with Android Asset Studio Generic Icon generator, select “TRIM” and make sure the padding is 0dp.
Same issue with me.