private void init(AttributeSet attrs) {
// 数组必须升序
TypedArray typedArray = getContext().obtainStyledAttributes(attrs,
new int[] {, });
textColorId = (0, -1);
bgId = (1, -1);
();
}
注意啊,里面传的数组一定要升序
private void init(AttributeSet attrs) {
// 数组必须升序
TypedArray typedArray = getContext().obtainStyledAttributes(attrs,
new int[] {, });
textColorId = (0, -1);
bgId = (1, -1);
();
}
注意啊,里面传的数组一定要升序