/** * Set theme color int (primaryColor and accentColor). * 设置主题颜色 * @param primaryColors ColorInt 主题颜色 * @return RefreshLayout */ RefreshLayout setPrimaryColors(@ColorInt int... primaryColors);
public BezierRadarHeader setPrimaryColor(@ColorInt int color) { mPrimaryColor = color; mManualPrimaryColor = true; return this; }
public BezierRadarHeader setAccentColor(@ColorInt int color) { mAccentColor = color; mManualAccentColor = true; return this; }
public void setBackgroundColor(@ColorInt int color) { mRing.mBackgroundColor = (color); }
/** * 设置分割线之间的文字的颜色 * * @param textColorCenter */ public TimePickerBuilder setTextColorCenter(@ColorInt int textColorCenter) { mPickerOptions.textColorCenter = textColorCenter; return this; }
/** * 设置分割线以外文字的颜色 * * @param textColorOut */ public TimePickerBuilder setTextColorOut(@ColorInt int textColorOut) { mPickerOptions.textColorOut = textColorOut; return this; }
/** * Set the textColor of outside item. * * @param textColorOut color resId. */ public OptionsPickerBuilder setTextColorOut(@ColorInt int textColorOut) { mPickerOptions.textColorOut = textColorOut; return this; }
/** * 显示时的外部背景色颜色,默认是灰色 * * @param outSideColor */ public TimePickerBuilder setOutSideColor(@ColorInt int outSideColor) { mPickerOptions.outSideColor = outSideColor; return this; }
public BallPulseFooter setNormalColor(@ColorInt int color) { mNormalColor = color; mManualNormalColor = true; if (!mIsStarted) { mPaint.setColor(color); } return this; }
public BallPulseFooter setAnimatingColor(@ColorInt int color) { mAnimatingColor = color; mManualAnimationColor = true; if (mIsStarted) { mPaint.setColor(color); } return this; }
public void setIndicatorColor(@ColorInt int color) { mPaint.setColor(color); }
/** * WaveView is colored by given color (including alpha) * * @param color ARGB color. WaveView will be colored by Black if rgb color is provided. * @see Paint#setColor(int) */ public void setWaveColor(@ColorInt int color) { mPaint.setColor(color); final View thisView = this; thisView.invalidate(); }
/** * @param colors 对应Xml中配置的 srlPrimaryColor srlAccentColor * @deprecated 请使用 {@link RefreshLayout#setPrimaryColorsId(int...)} */ @Override@Deprecated public void setPrimaryColors(@ColorInt int ... colors) { if (colors.length > 0) { mBezierPaint.setColor(colors[0]); } }
/** * @param colors 对应Xml中配置的 srlPrimaryColor srlAccentColor * @deprecated 请使用 {@link RefreshLayout#setPrimaryColorsId(int...)} */ @Override@Deprecated public void setPrimaryColors(@ColorInt int ... colors) { final View thisView = this; thisView.setBackgroundColor(colors[0]); } //
/** * Setter for crop frame color */ public void setCropFrameColor(@ColorInt int color) { mCropFramePaint.setColor(color); }
/** * @param color - desired resolved color of the statusbar */ public void setStatusBarColor(@ColorInt int color) { mOptionBundle.putInt(EXTRA_STATUS_BAR_COLOR, color); }
/** * @param colors 对应Xml中配置的 srlPrimaryColor srlAccentColor * @deprecated 请使用 {@link RefreshLayout#setPrimaryColorsId(int...)} */ @Override@Deprecated public void setPrimaryColors(@ColorInt int ... colors) { if (colors.length > 0) { final View thisView = this; thisView.setBackgroundColor(colors[0]); if (colors.length > 1) { mAccentColor = colors[1]; } } }
/** * @param colors 对应Xml中配置的 srlPrimaryColor srlAccentColor * @deprecated 请使用 {@link RefreshLayout#setPrimaryColorsId(int...)} */ @Override@Deprecated public void setPrimaryColors(@ColorInt int ... colors) { if (colors.length > 0) { mBackPaint.setColor(colors[0]); if (colors.length > 1) { mFrontPaint.setColor(colors[1]); mOuterPaint.setColor(colors[1]); } } }
/** * 【仅限框架内调用】设置主题颜色 * @param colors 对应Xml中配置的 srlPrimaryColor srlAccentColor */ @RestrictTo({LIBRARY,LIBRARY_GROUP,SUBCLASSES}) void setPrimaryColors(@ColorInt int... colors);
/** * @param colors 对应Xml中配置的 srlPrimaryColor srlAccentColor * @deprecated 请使用 {@link RefreshLayout#setPrimaryColorsId(int...)} */ @Override@Deprecated public void setPrimaryColors(@ColorInt int ... colors) { if (colors.length > 0) { mWaterDropView.setIndicatorColor(colors[0]); } } //