public PlayPauseView(Context context, AttributeSet attrs) {
super(context, attrs);
setWillNotDraw(false);
TypedValue colorTheme = new TypedValue();
context.getTheme().resolveAttribute(R.attr.colorAccent, colorTheme, true);
mBackgroundColor = Color.parseColor("#000000");//colorTheme.data;
mPaint.setAntiAlias(true);
mPaint.setStyle(Paint.Style.FILL);
mDrawable = new PlayPauseDrawable(context);
mDrawable.setCallback(this);
mPauseBackgroundColor = Color.parseColor("#000000");//colorTheme.data;
mPlayBackgroundColor = Color.parseColor("#000000");//colorTheme.data;
TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.PlayPause);
isDrawCircle = a.getBoolean(R.styleable.PlayPause_isCircleDraw, isDrawCircle);
}
PlayPauseView.java 文件源码
java
阅读 46
收藏 0
点赞 0
评论 0
项目:DMAudioStreamer
作者:
评论列表
文章目录