private void init(Context context, @Nullable AttributeSet attrs, int defStyleAttr, int
defStyleRes) {
mAttrsHelper.init(context, attrs, defStyleAttr, defStyleRes);
setText(mAttrsHelper.mText);
TextPaint textPaint = getTextPaint();
textPaint.setColor(mAttrsHelper.mTextColor);
textPaint.setTextSize(mAttrsHelper.mTextSize);
final Resources.Theme theme = context.getTheme();
TypedArray a = theme.obtainStyledAttributes(attrs, R.styleable.FastTextView, defStyleAttr,
defStyleRes);
mEnableLayoutCache = a.getBoolean(R.styleable.FastTextView_enableLayoutCache, false);
a.recycle();
}
FastTextView.java 文件源码
java
阅读 50
收藏 0
点赞 0
评论 0
项目:FastTextView
作者:
评论列表
文章目录