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

显示红点时,如何设置红点大小? #63

Open
yannanzheng opened this issue Dec 18, 2017 · 2 comments
Open

显示红点时,如何设置红点大小? #63

yannanzheng opened this issue Dec 18, 2017 · 2 comments

Comments

@yannanzheng
Copy link

模仿微信的红点提示,我将badgenumber设置为-1成功显示了红点,但是红点还是偏大了点,感觉大概有7dp的样子。尝试了setBadgeBackground(),但是并不起作用。

@luongvo
Copy link

luongvo commented Dec 18, 2017

@yannanzheng Maybe this PR #60 solves this problem. While waiting for merging, you could use my latest version at https://jitpack.io/#luongvo/BadgeView/1.1.5

Demo here: https://github.com/qstumn/BadgeView/pull/60/files#diff-56f052d8bf04214873f4313a6e6a1e63R289

@lichen228
Copy link

lichen228 commented Feb 26, 2018

You can set RedPoint size like this:
setBadgeNumber(-1)
setBadgePadding(4,ture)

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