final Resources.Theme theme = context.getTheme(); TypedArray a = theme.obtainStyledAttributes();获得自定义控件的主题样式数组