Chaoqian Wu
Chaoqian Wu
我能想到的办法也是这样,不过感觉这样不优雅
我找到了个办法,在**SkinAttrSupport**类中增加如下一个分支判断,获取主题中的颜色值 ``` java else if (attrValue.startsWith("?")) { int id = Integer.parseInt(attrValue.substring(1)); TypedValue typedValue = new TypedValue(); TypedArray a = context.obtainStyledAttributes(typedValue.data, new int[]{id}); String entryName = context.getResources() .getResourceEntryName(a.getResourceId(0, 0)); a.recycle(); Timber.d("%s's...
抱歉,这个项目已经停更三年了噢~里边所使用的SDK都是旧的,不建议参考。