PieItem.java 文件源码

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

项目:GravityBox 作者:
public PieItem(Context context, Context gbContext, PieLayout parent, int flags, int width, 
        Object tag, View view, PieController.ColorInfo colorInfo) {
    mContext = context;
    mGbResources = gbContext.getResources();
    mView = view;
    mPieLayout = parent;
    this.tag = tag;
    this.width = width;
    this.flags = flags | PieDrawable.VISIBLE | PieDrawable.DISPLAY_ALL;

    mBackgroundPaint.setAntiAlias(true);
    mSelectedPaint.setAntiAlias(true);
    mOutlinePaint.setAntiAlias(true);
    mOutlinePaint.setStyle(Style.STROKE);
    mOutlinePaint.setStrokeWidth(mGbResources.getDimensionPixelSize(R.dimen.pie_outline));

    setColor(colorInfo);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号