예제 #1
0
 @Override
 public void setTheme(Resources.Theme themeId, ThemeInfo themeInfo) {
   if (attr_background != -1) {
     ViewAttributeUtil.applyBackgroundDrawable(this, themeId, attr_background);
   }
 }
예제 #2
0
 public ColorView(Context context, AttributeSet attrs, int defStyleAttr) {
   super(context, attrs, defStyleAttr);
   this.attr_background = ViewAttributeUtil.getBackgroundAttibute(attrs);
 }