Bottombar: Title hiding over time when tabs are pressed

Created on 27 Sep 2016  路  8Comments  路  Source: roughike/BottomBar

While 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

`

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"/>

`

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...

screenshot_1474931672
screenshot_1474931677
screenshot_1474931688

All 8 comments

same issue

have the same issue here.

same

Same issue

Same issue with me.

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
@iman2420 my icons are as you mentioned, still having this problem

solved in Issue #592 using android:windowSoftInputMode="adjustPan" in the manifest

Was this page helpful?
0 / 5 - 0 ratings

Related issues

avivcaspi picture avivcaspi  路  8Comments

vikramkakkar picture vikramkakkar  路  3Comments

mag2007 picture mag2007  路  8Comments

BlaineOmega picture BlaineOmega  路  7Comments

rodrigobressan picture rodrigobressan  路  4Comments