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 cannot update #12

Open
smedic opened this issue Apr 18, 2018 · 3 comments
Open

Badge cannot update #12

smedic opened this issue Apr 18, 2018 · 3 comments

Comments

@smedic
Copy link

smedic commented Apr 18, 2018

I am trying to update badge programmatically and it just won't refresh for some reason.
It stays with the old value.
Any idea?

@osmanyildirim
Copy link

osmanyildirim commented Jul 2, 2018

you can use global variable

Kotlin example

private var badgeView: BadgeView

@Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
       badgeView = BadgeFactory.createCircle(context)
    }

private fun updateBadge() {
        badgeView.setBadgeCount(3).setTextSize(10).setBadgeGravity(Gravity.TOP or Gravity.LEFT).bind(imgView)
    }

@Hashir524
Copy link

Is this the Solution. i am facing the same issue?

@Hashir524
Copy link

It Worked! Close This Issue mate 👯‍♂️

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

3 participants