Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deprecated enableItemShiftingMode and enableShiftingMode #135

Open
razvan-ursu opened this issue Oct 8, 2018 · 9 comments
Open

deprecated enableItemShiftingMode and enableShiftingMode #135

razvan-ursu opened this issue Oct 8, 2018 · 9 comments

Comments

@razvan-ursu
Copy link

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

@ZiranLi
Copy link

ZiranLi commented Oct 15, 2018

Same problem here. Have you solved it?

@GustavoContreiras
Copy link

Same here. Anyone?

@razvan-ursu
Copy link
Author

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

@GustavoContreiras
Copy link

GustavoContreiras commented Oct 22, 2018 via email

@mjgoncalves
Copy link

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

@vjain8507
Copy link

use

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

It worked for me.

@fairytale110
Copy link

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
Copy link

any luck on this ?

@SaadBilal
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants