roughike / BottomBar

(Deprecated) A custom view component that mimics the new Material Design Bottom Navigation pattern.
Apache License 2.0
8.42k stars 1.5k forks source link

Title hiding over time when tabs are pressed #517

Open german970814 opened 8 years ago

german970814 commented 8 years ago

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

`<?xml version="1.0" encoding="utf-8"?>

``` ``` ` bottombar.xml ` ` 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](https://cloud.githubusercontent.com/assets/15973868/18855069/9561bc34-8415-11e6-8ec0-9c2198afbd80.png) ![screenshot_1474931677](https://cloud.githubusercontent.com/assets/15973868/18855093/b8cb250c-8415-11e6-9310-c682d62d8a02.png) ![screenshot_1474931688](https://cloud.githubusercontent.com/assets/15973868/18855096/bbb67faa-8415-11e6-839c-542b21e014d9.png)
bulatgaleev commented 8 years ago

same issue

pong106 commented 8 years ago

have the same issue here.

Kiruel commented 8 years ago

same

kellysnow commented 8 years ago

Same issue

sumodkulkarni commented 7 years ago

Same issue with me.

iman2420 commented 7 years ago

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.

jaadchacra commented 7 years ago

same issue @iman2420 my icons are as you mentioned, still having this problem

jaadchacra commented 7 years ago

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