ittianyu / BottomNavigationViewEx

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

deprecated enableItemShiftingMode and enableShiftingMode #135

Open razvan-ursu opened 6 years ago

razvan-ursu commented 6 years ago

enableItemShiftingMode(boolean) is deprecated.... I really don't understand why

ZiranLi commented 6 years ago

Same problem here. Have you solved it?

GustavoContreiras commented 6 years ago

Same here. Anyone?

razvan-ursu commented 6 years ago

Nope... l used them even if they are deprecated

GustavoContreiras commented 6 years ago

It's not working like it should here. Maybe its something else, gonna try.

Em seg, 22 de out de 2018 às 10:25, ursurazvanclaudiu < notifications@github.com> escreveu:

Nope... l used them even if they are deprecated

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ittianyu/BottomNavigationViewEx/issues/135#issuecomment-431834809, or mute the thread https://github.com/notifications/unsubscribe-auth/Akrbv8wBptA1Hrsc4MyU7SVtbb-nehavks5unccugaJpZM4XNRxF .

-- Gustavo Contreiras +55 21 99556 7025

mjgoncalves commented 6 years ago

I also don't know why! Still using it, but really don't know an alternative for it. Any news?

vjain8507 commented 6 years ago

use

nav.setLabelVisibilityMode(1); // for enableShiftingMode(false) nav.setItemHorizontalTranslationEnabled(false); // for enableItemShiftingMode(false)

It worked for me.

fairytale110 commented 6 years ago

setLabelVisibilityMode(LabelVisibilityMode.LABEL_VISIBILITY_LABELED); tabBottom.setItemHorizontalTranslationEnabled(false);

see: package com.google.android.material.bottomnavigation;

...

@Retention(RetentionPolicy.SOURCE) public @interface LabelVisibilityMode { int LABEL_VISIBILITY_AUTO = -1; int LABEL_VISIBILITY_SELECTED = 0; int LABEL_VISIBILITY_LABELED = 1; int LABEL_VISIBILITY_UNLABELED = 2; }

SaadBilal commented 5 years ago

any luck on this ?

SaadBilal commented 5 years ago

use

nav.setLabelVisibilityMode(1); // for enableShiftingMode(false) nav.setItemHorizontalTranslationEnabled(false); // for enableItemShiftingMode(false)

It worked for me.

Do we have any new methods for text size? App crashed when changing TextSize