DrawerArrowDrawable.java 文件源码

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

项目:boohee_v5.6 作者:
public DrawerArrowDrawable(Context context) {
    this.mPaint.setStyle(Style.STROKE);
    this.mPaint.setStrokeJoin(Join.MITER);
    this.mPaint.setStrokeCap(Cap.BUTT);
    this.mPaint.setAntiAlias(true);
    TypedArray a = context.getTheme().obtainStyledAttributes(null, R.styleable.DrawerArrowToggle, R.attr.drawerArrowStyle, R.style.Base_Widget_AppCompat_DrawerArrowToggle);
    setColor(a.getColor(R.styleable.DrawerArrowToggle_color, 0));
    setBarThickness(a.getDimension(R.styleable.DrawerArrowToggle_thickness, 0.0f));
    setSpinEnabled(a.getBoolean(R.styleable.DrawerArrowToggle_spinBars, true));
    setGapSize((float) Math.round(a.getDimension(R.styleable.DrawerArrowToggle_gapBetweenBars, 0.0f)));
    this.mSize = a.getDimensionPixelSize(R.styleable.DrawerArrowToggle_drawableSize, 0);
    this.mBarLength = (float) Math.round(a.getDimension(R.styleable.DrawerArrowToggle_barLength, 0.0f));
    this.mArrowHeadLength = (float) Math.round(a.getDimension(R.styleable.DrawerArrowToggle_arrowHeadLength, 0.0f));
    this.mArrowShaftLength = a.getDimension(R.styleable.DrawerArrowToggle_arrowShaftLength, 0.0f);
    a.recycle();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号