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

可以不显示数字,直接一个红点吗? #52

Open
zhangpengDavid opened this issue Oct 28, 2017 · 5 comments
Open

可以不显示数字,直接一个红点吗? #52

zhangpengDavid opened this issue Oct 28, 2017 · 5 comments

Comments

@zhangpengDavid
Copy link

No description provided.

@yunzhouhua
Copy link

看了一下源码,你把BadgeCount设置成一个小于0的数,显示的就是原点

@luongvo
Copy link

luongvo commented Dec 1, 2017

I had created a PR to supports this issue at #60
While waiting for merging, you could use my latest version at https://jitpack.io/#luongvo/BadgeView/1.1.5

@luongvo
Copy link

luongvo commented Dec 1, 2017

@zhangpengDavid check it :)

@lichen228
Copy link

lichen228 commented Feb 26, 2018

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

@pengyuu
Copy link

pengyuu commented Jul 24, 2018

badgeView.setBadgeText("")
.setBadgePadding(2.5f,true)
.setBadgeBackground(_mActivity.resources.getDrawable(R.drawable.bg_message_badge))

bg_message_badge.xml

<corners android:radius="2.5dp"/>
<solid android:color="#F76565"/>

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

5 participants