private void initSystemAttrs(Context context, AttributeSet attrs) {
if (attrs == null) {
return;
}
Class<?> clazz = ReflectUtils.getClass("com.android.internal.R$styleable");
if (clazz == null) {
return;
}
int[] getViewGroupStyleable = getStaticIntArrayField(clazz, "ViewGroup_Layout");
if (getViewGroupStyleable == null) {
利用反射 获取android布局文件中设置的属性值
最新推荐文章于 2021-05-26 20:31:52 发布
![](https://img-home.csdnimg.cn/images/20240611030827.png)