用到的类:
com.jauker.widget.BadgeView
实现代码:
1 BadgeView imageBadge = new BadgeView(getContext()); 2 imageBadge.setTargetView(mHolder.image); 3 imageBadge.setText(""); 4 imageBadge.setHeight(30); 5 imageBadge.setWidth(30); 6 imageBadge.setBackground(15, getContext().getResources().getColor(R.color.badge_red));//#F24541
时间: 2024-10-19 04:30:59