Sets the background of days and weeks of year buttons.

@param decorationBackgroundColor
The background to set
174728
public void setDecorationBackgroundColor(Color decorationBackgroundColor) {
		this.decorationBackgroundColor = decorationBackgroundColor;

		if (days != null) {
			for (int i = 0; i < 7; i++) {
				days[i].setBackground(decorationBackgroundColor);
			}
		}

		if (weeks != null) {
			for (int i = 0; i < 7; i++) {
				weeks[i].setBackground(decorationBackgroundColor);
			}
		}
	}
995003
private void obtainHeaderBackground(@StyleRes final int themeResourceId) {
        TypedArray typedArray = getContext().getTheme().obtainStyledAttributes(themeResourceId,
                new int[]{R.attr.materialDialogHeaderBackground});
        int resourceId = typedArray.getResourceId(0, 0);

        if (resourceId != 0) {
            setHeaderBackground(resourceId);
        } else {
            setHeaderBackgroundColor(
                    ThemeUtil.getColor(getContext(), themeResourceId, R.attr.colorPrimary));
        }
    }
85202
public void setBackgroundPeriod(long period)
  {
    if (period < 1) {
      throw new ConfigException(L.l("profile period '{0}ms' is too small.  The period must be greater than 10ms.",
                                    period));
    }

    _profilerService.setBackgroundInterval(period, TimeUnit.MILLISECONDS);
  }
1125993
public final void setDialogBackgroundColor(@ColorInt final int color) {
        this.dialogBackground = new ColorDrawable(color);
        this.dialogBackgroundBitmap = null;
        this.dialogBackgroundId = -1;
        this.dialogBackgroundColor = color;
    }
1339036
@NonNull
    public IconicsDrawable backgroundColorRes(@ColorRes int colorResId) {
        return backgroundColor(ContextCompat.getColor(mContext, colorResId));
    }
153272
@SuppressLint("NewApi")
    public static void setBackground(View v, Drawable d) {
        if (Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_BEAN) {
            v.setBackgroundDrawable(d);
        } else {
            v.setBackground(d);
        }
    }
798352
public final void setDialogHeaderBackgroundColor(@ColorInt final int color) {
        this.dialogHeaderBackground = new ColorDrawable(color);
        this.dialogHeaderBackgroundBitmap = null;
        this.dialogHeaderBackgroundId = -1;
        this.dialogHeaderBackgroundColor = color;
    }
292120
public void configureColor(AbstractButton button) {
        Assert.notNull(button, "button");
        if (foreground != null) {
        	button.setForeground(foreground);
        }
        if (background != null) {
        	button.setBackground(background);
        }
    }
195568
public final void setBackground(@DrawableRes final int resourceId) {
        this.background = ContextCompat.getDrawable(getContext(), resourceId);
        this.backgroundBitmap = null;
        this.backgroundId = -1;
        this.backgroundColor = -1;
        adaptBackground();
    }
944535
public StyleSet setBackgroundColor(IndexedColors backgroundColor, boolean withHeadCell) {
		if (withHeadCell) {
			StyleUtil.setColor(this.headCellStyle, backgroundColor, FillPatternType.SOLID_FOREGROUND);
		}
		StyleUtil.setColor(this.cellStyle, backgroundColor, FillPatternType.SOLID_FOREGROUND);
		StyleUtil.setColor(this.cellStyleForNumber, backgroundColor, FillPatternType.SOLID_FOREGROUND);
		StyleUtil.setColor(this.cellStyleForDate, backgroundColor, FillPatternType.SOLID_FOREGROUND);
		return this;
	}
9746
public function setBackgroundColor($backgroundColor)
    {
        $this->_backgroundColor = $backgroundColor;
        if ($this->_backgroundColor && $this->_colorTable) {
            $this->_colorTable->add($this->_backgroundColor);
        }
    }
1214058
public void setDateColor(final Color COLOR) {
        if (null == dateColor) {
            _dateColor = COLOR;
            fireUpdateEvent(REDRAW_EVENT);
        } else {
            dateColor.set(COLOR);
        }
    }
978071
private void obtainButtonTextColor(@StyleRes final int themeResourceId) {
        TypedArray typedArray = getContext().getTheme().obtainStyledAttributes(themeResourceId,
                new int[]{R.attr.materialDialogButtonTextColor});
        ColorStateList colorStateList = typedArray.getColorStateList(0);

        if (colorStateList != null) {
            setButtonTextColor(colorStateList);
        }
    }
1227837
public final void setDialogBackground(@Nullable final Bitmap background) {
        this.dialogBackground = new BitmapDrawable(getContext().getResources(), background);
        this.dialogBackgroundBitmap = background;
        this.dialogBackgroundId = -1;
        this.dialogBackgroundColor = -1;
    }
821120
private function setBackgroundColor($backgroundColor)
    {
        $this->backgroundColor = (int)$backgroundColor;
        $tmpImage = imagecreatetruecolor($this->width, $this->height);
        imagefilledrectangle($tmpImage, 0, 0, $this->width, $this->height, $this->backgroundColor);
        imagecopy($tmpImage, $this->resource, 0, 0, 0, 0, $this->width, $this->height);
        $this->resource = $tmpImage;
    }
62355
@NonNull
    public IconicsDrawable backgroundColor(@NonNull ColorStateList colors) {
        if (colors != null) {
            boolean isInvalidate = false;

            if (mRoundedCornerRx == -1) {
                mRoundedCornerRx = 0;
                isInvalidate = true;
            }
            if (mRoundedCornerRy == -1) {
                mRoundedCornerRy = 0;
                isInvalidate = true;
            }

            mBackgroundBrush.setColors(colors);
            if (mBackgroundBrush.applyState(getState())) {
                isInvalidate = true;
            }

            if (isInvalidate) {
                invalidateSelf();
            }
        }
        return this;
    }
981443
private void obtainButtonBarBackground() {
        try {
            int color =
                    ThemeUtil.getColor(getActivity(), R.attr.restoreDefaultsButtonBarBackground);
            setButtonBarBackgroundColor(color);
        } catch (NotFoundException e) {
            int resourceId = ThemeUtil
                    .getResId(getActivity(), R.attr.restoreDefaultsButtonBarBackground, -1);

            if (resourceId != -1) {
                setButtonBarBackground(resourceId);
            } else {
                setButtonBarBackgroundColor(
                        ContextCompat.getColor(getActivity(), R.color.button_bar_background_light));
            }
        }
    }