ShadeTriangleTotalForRankView.java 文件源码

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

项目:Mask-Animation 作者:
private void init(Context context, AttributeSet attrs, int defStyle) {
    TypedArray type = context.obtainStyledAttributes(attrs, R.styleable.ShadeTriangleTotalForRankView, 0, 0);
    duration = (long) type.getFloat(R.styleable.ShadeTriangleTotalForRankView_shade_duration, 18000f);
    mImageSource_total = type.getResourceId(R.styleable.ShadeTriangleTotalForRankView_image_total, R.drawable.mask_triangle_total);
    mTotal_bitmap = readBitMap(context, mImageSource_total);
    mPaint_Mask.setStyle(Paint.Style.FILL);
    mPaint_Mask.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.DST_IN));
    mPaint_Pic.setFilterBitmap(true);
    pfd = new PaintFlagsDrawFilter(0, Paint.ANTI_ALIAS_FLAG | Paint.FILTER_BITMAP_FLAG);

    src = new Rect();
    dst = new Rect();
    path = new Path();

}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号