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

角标属性 #17

Closed
330676687 opened this issue Jul 14, 2020 · 3 comments
Closed

角标属性 #17

330676687 opened this issue Jul 14, 2020 · 3 comments

Comments

@330676687
Copy link

角标可以加个边框颜色和粗细的属性吗

@angcyo
Copy link
Owner

angcyo commented Jul 14, 2020

1.5.6 更新:

TabBadgeConfig新增了以下属性:

data class TabBadgeConfig(
   ...

    /**角标边框颜色*/
    var badgeStrokeColor: Int = Color.TRANSPARENT,
    /**角标边框宽度*/
    var badgeStrokeWidth: Int = 0

  ...

@angcyo angcyo closed this as completed Jul 14, 2020
@330676687
Copy link
Author

是不是忘了在DslBadgeDrawable这个类更新了,无法通过onTabBadgeConfig直接设置

@angcyo
Copy link
Owner

angcyo commented Jul 14, 2020

是不是忘了在DslBadgeDrawable这个类更新了,无法通过onTabBadgeConfig直接设置

可以通过DslTabBadge对象的 gradientStrokeColor gradientStrokeWidth属性达到相同效果.

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