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

Badge not resizing when setting new value #853

Open
dsuresh-ap opened this issue Sep 28, 2017 · 2 comments
Open

Badge not resizing when setting new value #853

dsuresh-ap opened this issue Sep 28, 2017 · 2 comments

Comments

@dsuresh-ap
Copy link

Tested on version 2.3.1

Calling setBadgeCount() doesn't resize the badge icon when going to a larger number. Ex. 99 ->101. The "10" gets cut off. Looking at the view debugger it shows the badge TextView as the same size before and after setting the badge count.

The only solution I found around this is to remove the badge first and then set it if the number is going to be large.

@elly0t
Copy link

elly0t commented Oct 26, 2017

same here

@dsuresh-ap
Copy link
Author

@elly0t I managed to temporarily fix the issue by checking if the new number's digit count goes over or under 100. It if does, then I remove the badge and add it instead of just setting the number.

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

2 participants