RoundRectDrawableWithShadow(Resources resources, int backgroundColor, float radius, float shadowSize, float maxShadowSize) {
this.mShadowStartColor = resources.getColor(R.color.cardview_shadow_start_color);
this.mShadowEndColor = resources.getColor(R.color.cardview_shadow_end_color);
this.mInsetShadow = resources.getDimensionPixelSize(R.dimen.cardview_compat_inset_shadow);
this.mPaint = new Paint(5);
this.mPaint.setColor(backgroundColor);
this.mCornerShadowPaint = new Paint(5);
this.mCornerShadowPaint.setStyle(Style.FILL);
this.mCornerRadius = (float) ((int) (0.5f + radius));
this.mCardBounds = new RectF();
this.mEdgeShadowPaint = new Paint(this.mCornerShadowPaint);
this.mEdgeShadowPaint.setAntiAlias(false);
setShadowSize(shadowSize, maxShadowSize);
}
RoundRectDrawableWithShadow.java 文件源码
java
阅读 46
收藏 0
点赞 0
评论 0
项目:boohee_v5.6
作者:
评论列表
文章目录