TextBadgeItem.java 文件源码

java
阅读 36 收藏 0 点赞 0 评论 0

项目:GitHub 作者:
/**
 * @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;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号