ittianyu / BottomNavigationViewEx

An android lib for enhancing BottomNavigationView. 一个增强BottomNavigationView的安卓库。
MIT License
3.47k stars 558 forks source link

Too long titles disappear after tapping on a item #132

Open JohnMars25 opened 6 years ago

JohnMars25 commented 6 years ago

Hello, thanks for your library, its great. However I have a problem with latest version. I have a 5 items placed in bottom menu, one with long text as title. After tapping on this item, last part of text disappears. Dou you know, how it can be improvved? Thank you.

TopeMateo commented 6 years ago

Hello, I've also experienced this issue on my app. The solution I used was to disable the animation on the bottom navigation using this codes:

bnve.enableAnimation(false); bnve.enableShiftingMode(false); bnve.enableItemShiftingMode(false);

Before the update, it was working fine for me. I have to disable the animation and shifting mode since I need to display both the icon and label. I hope they can fix this issue soon or have another alternative to my answer.

MrVlad001 commented 6 years ago

Hello, thanks for your library, its great. However I have a problem with latest version. I have a 5 items placed in bottom menu, one with long text as title. After tapping on this item, last part of text disappears. Dou you know, how it can be improvved? Thank you.

did you find a solution?

MrVlad001 commented 6 years ago

@JohnMars25 , I found a solution. Try this

for(int i = 0 ; i < bottomNavigation.getItemCount(); i++ ){
            TextView view = bottomNavigation.getLargeLabelAt(i);
            view.setPadding(0,0,0,0);
}