/**
* @param context to fetch color
* @return return the background drawable
*/
private GradientDrawable getBadgeDrawable(Context context) {
GradientDrawable shape = new GradientDrawable();
shape.setShape(GradientDrawable.RECTANGLE);
shape.setCornerRadius(context.getResources().getDimensionPixelSize(R.dimen.badge_corner_radius));
shape.setColor(getBackgroundColor(context));
shape.setStroke(getBorderWidth(), getBorderColor(context));
return shape;
}
TextBadgeItem.java 文件源码
java
阅读 36
收藏 0
点赞 0
评论 0
项目:GitHub
作者:
评论列表
文章目录