Searched refs:tint (Results 1 - 24 of 24) sorted by relevance

/frameworks/support/v4/api21/android/support/v4/graphics/drawable/
H A DDrawableCompatL.java37 public static void setTint(Drawable drawable, int tint) { argument
38 drawable.setTint(tint);
41 public static void setTintList(Drawable drawable, ColorStateList tint) { argument
42 drawable.setTintList(tint);
/frameworks/support/v4/java/android/support/v4/graphics/drawable/
H A DDrawableCompat.java38 void setTint(Drawable drawable, int tint); argument
39 void setTintList(Drawable drawable, ColorStateList tint); argument
69 public void setTint(Drawable drawable, int tint) { argument
73 public void setTintList(Drawable drawable, ColorStateList tint) { argument
121 public void setTint(Drawable drawable, int tint) { argument
122 DrawableCompatL.setTint(drawable, tint);
126 public void setTintList(Drawable drawable, ColorStateList tint) { argument
127 DrawableCompatL.setTintList(drawable, tint);
219 * Specifies a tint for {@code drawable}.
222 * @param tint Colo
224 setTint(Drawable drawable, int tint) argument
235 setTintList(Drawable drawable, ColorStateList tint) argument
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
H A DDrawableWrapper.java187 public void setTint(int tint) { argument
188 DrawableCompat.setTint(mDrawable, tint);
192 public void setTintList(ColorStateList tint) { argument
193 DrawableCompat.setTintList(mDrawable, tint);
/frameworks/base/graphics/java/android/graphics/drawable/
H A DShapeDrawable.java288 public void setTintList(ColorStateList tint) { argument
289 mShapeState.mTint = tint;
290 mTintFilter = updateTintFilter(mTintFilter, tint, mShapeState.mTintMode);
453 final ColorStateList tint = a.getColorStateList(R.styleable.ShapeDrawable_tint);
454 if (tint != null) {
455 state.mTint = tint;
H A DColorDrawable.java171 public void setTintList(ColorStateList tint) { argument
172 mColorState.mTint = tint;
173 mTintFilter = updateTintFilter(mTintFilter, tint, mColorState.mTintMode);
H A DDrawable.java475 * Specifies a tint for this drawable.
478 * tint.
480 * @param tint Color to use for tinting this drawable
483 public void setTint(int tint) { argument
484 setTintList(ColorStateList.valueOf(tint));
488 * Specifies a tint for this drawable as a color state list.
491 * tint.
493 * @param tint Color state list to use for tinting this drawable, or null to
494 * clear the tint
497 public void setTintList(ColorStateList tint) {} argument
1254 updateTintFilter(PorterDuffColorFilter tintFilter, ColorStateList tint, PorterDuff.Mode tintMode) argument
[all...]
H A DNinePatchDrawable.java350 public void setTintList(ColorStateList tint) { argument
351 mNinePatchState.mTint = tint;
352 mTintFilter = updateTintFilter(mTintFilter, tint, mNinePatchState.mTintMode);
465 final ColorStateList tint = a.getColorStateList(R.styleable.NinePatchDrawable_tint);
466 if (tint != null) {
467 state.mTint = tint;
H A DClipDrawable.java178 public void setTintList(ColorStateList tint) { argument
179 mClipState.mDrawable.setTintList(tint);
H A DAnimatedRotateDrawable.java174 public void setTintList(ColorStateList tint) { argument
175 mState.mDrawable.setTintList(tint);
H A DScaleDrawable.java194 public void setTintList(ColorStateList tint) { argument
195 mScaleState.mDrawable.setTintList(tint);
H A DBitmapDrawable.java636 public void setTintList(ColorStateList tint) { argument
637 mBitmapState.mTint = tint;
638 mTintFilter = updateTintFilter(mTintFilter, tint, mBitmapState.mTintMode);
765 final ColorStateList tint = a.getColorStateList(R.styleable.BitmapDrawable_tint);
766 if (tint != null) {
767 state.mTint = tint;
H A DVectorDrawable.java74 * <dt><code>android:tint</code></dt>
75 * <dd>The color to apply to the drawable as a tint. By default, no tint is applied.</dd>
77 * <dd>The Porter-Duff blending mode for the tint color. The default value is src_in.</dd>
263 // Color filters always override tint filters.
309 public void setTintList(ColorStateList tint) { argument
311 if (state.mTint != tint) {
312 state.mTint = tint;
313 mTintFilter = updateTintFilter(mTintFilter, tint, state.mTintMode);
478 final ColorStateList tint
[all...]
H A DAnimatedVectorDrawable.java210 public void setTintList(ColorStateList tint) { argument
211 mAnimatedVectorState.mVectorDrawable.setTintList(tint);
H A DInsetDrawable.java290 public void setTintList(ColorStateList tint) { argument
291 mInsetState.mDrawable.setTintList(tint);
H A DRotateDrawable.java142 public void setTintList(ColorStateList tint) { argument
143 mState.mDrawable.setTintList(tint);
H A DDrawableContainer.java179 public void setTintList(ColorStateList tint) { argument
182 if (mDrawableContainerState.mTintList != tint) {
183 mDrawableContainerState.mTintList = tint;
186 mCurrDrawable.mutate().setTintList(tint);
450 // Color filter always overrides tint.
H A DLayerDrawable.java701 public void setTintList(ColorStateList tint) { argument
705 array[i].mDrawable.setTintList(tint);
/frameworks/base/core/java/android/widget/
H A DProgressBar.java445 // Ensure the tint and filter are propagated in the correct order.
593 * Applies a tint to the indeterminate drawable. Does not modify the
594 * current tint mode, which is {@link PorterDuff.Mode#SRC_IN} by default.
597 * automatically mutate the drawable and apply the specified tint and
598 * tint mode using
601 * @param tint the tint to apply, may be {@code null} to clear tint
607 public void setIndeterminateTintList(@Nullable ColorStateList tint) { argument
611 mProgressTintInfo.mIndeterminateTintList = tint;
845 setProgressTintList(@ullable ColorStateList tint) argument
926 setProgressBackgroundTintList(@ullable ColorStateList tint) argument
1004 setSecondaryProgressTintList(@ullable ColorStateList tint) argument
1201 setDrawableTint(int id, ColorStateList tint, Mode tintMode, boolean fallback) argument
[all...]
H A DCheckedTextView.java194 * Applies a tint to the check mark drawable. Does not modify the
195 * current tint mode, which is {@link PorterDuff.Mode#SRC_IN} by default.
198 * automatically mutate the drawable and apply the specified tint and
199 * tint mode using
202 * @param tint the tint to apply, may be {@code null} to clear tint
208 public void setCheckMarkTintList(@Nullable ColorStateList tint) { argument
209 mCheckMarkTintList = tint;
216 * Returns the tint applie
[all...]
H A DCompoundButton.java246 * Applies a tint to the button drawable. Does not modify the current tint
250 * automatically mutate the drawable and apply the specified tint and tint
254 * @param tint the tint to apply, may be {@code null} to clear tint
260 public void setButtonTintList(@Nullable ColorStateList tint) { argument
261 mButtonTintList = tint;
268 * @return the tint applie
[all...]
H A DAbsSeekBar.java195 * Applies a tint to the thumb drawable. Does not modify the current tint
199 * mutate the drawable and apply the specified tint and tint mode using
202 * @param tint the tint to apply, may be {@code null} to clear tint
208 public void setThumbTintList(@Nullable ColorStateList tint) { argument
209 mThumbTintList = tint;
216 * Returns the tint applie
[all...]
H A DFrameLayout.java317 * Applies a tint to the foreground drawable. Does not modify the current
318 * tint mode, which is {@link PorterDuff.Mode#SRC_IN} by default.
321 * mutate the drawable and apply the specified tint and tint mode using
324 * @param tint the tint to apply, may be {@code null} to clear tint
330 public void setForegroundTintList(@Nullable ColorStateList tint) { argument
331 mForegroundTintList = tint;
338 * @return the tint applie
[all...]
H A DImageView.java461 * Applies a tint to the image drawable. Does not modify the current tint
465 * mutate the drawable and apply the specified tint and tint mode using
468 * @param tint the tint to apply, may be {@code null} to clear tint
474 public void setImageTintList(@Nullable ColorStateList tint) { argument
475 mDrawableTintList = tint;
482 * @return the tint applie
[all...]
/frameworks/base/core/java/android/view/
H A DView.java16250 * Applies a tint to the background drawable. Does not modify the current tint
16254 * mutate the drawable and apply the specified tint and tint mode using
16257 * @param tint the tint to apply, may be {@code null} to clear tint
16263 public void setBackgroundTintList(@Nullable ColorStateList tint) { argument
16267 mBackgroundTint.mTintList = tint;
16274 * Return the tint applie
[all...]

Completed in 358 milliseconds