We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
if(badge==null){ badge = new QBadgeView(context).bindTarget(img_type); badge.setBadgeGravity(Gravity.END | Gravity.TOP); badge.setGravityOffset(DensityUtil.dip2px(context,6), DensityUtil.dip2px(context,6), false); badge.setBadgePadding(3, true); badge.setBadgeTextSize(10, true); badge.setBadgeTextColor(context.getResources().getColor(R.color.mine_secretary_color)); badge.setBadgeBackgroundColor(Color.parseColor("#ffffff")); } badge.setBadgeNumber(typeBean.getMesCount());
The text was updated successfully, but these errors were encountered:
你可以参照我demo中RecyclerViewActivity中的用法,你这种写法不太好
Sorry, something went wrong.
q.rorbin.badgeview.QBadgeView$BadgeContainer cannot be cast to android.widget.ImageView,不能放recycleview中用,没法刷新的
请参照此处解决此问题 https://github.com/qstumn/BadgeView#5一些注意事项
No branches or pull requests
if(badge==null){
badge = new QBadgeView(context).bindTarget(img_type);
badge.setBadgeGravity(Gravity.END | Gravity.TOP);
badge.setGravityOffset(DensityUtil.dip2px(context,6), DensityUtil.dip2px(context,6), false);
badge.setBadgePadding(3, true);
badge.setBadgeTextSize(10, true);
badge.setBadgeTextColor(context.getResources().getColor(R.color.mine_secretary_color));
badge.setBadgeBackgroundColor(Color.parseColor("#ffffff"));
}
badge.setBadgeNumber(typeBean.getMesCount());
The text was updated successfully, but these errors were encountered: