用到的类:
com.jauker.widget.BadgeView
实现代码:
BadgeView imageBadge = new BadgeView(getContext());
imageBadge.setTargetView(mHolder.image);
imageBadge.setText("");
imageBadge.setHeight();
imageBadge.setWidth();
imageBadge.setBackground(, getContext().getResources().getColor(R.color.badge_red));//#F24541
栏目订阅
BadgeView badgeView = new BadgeView(convertView.getContext());
badgeView.setText("");
badgeView.setBadgeMargin();
badgeView.setBackgroundDrawable(parent.getContext().getResources().getDrawable(R.drawable.icon_delete));
badgeView.setTargetView(vh.layout);