context.obtainStyledAttributes
TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.ChangeColorIconWithText);
int n = a.getIndexCount();
打斷點到這里發現n=2,但是switch里面是有四個選項,這個是什么回事
TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.ChangeColorIconWithText);
int n = a.getIndexCount();
打斷點到這里發現n=2,但是switch里面是有四個選項,這個是什么回事
2016-04-08
舉報