Home | History | Annotate | Download | only in drawabletinting

Lines Matching refs:Color

19 import android.graphics.Color;
40 * A color state list is referenced as the tint color, which defines colors for different
43 * a reference to a color and a PorterDuff blend mode. The color and blend mode can be
62 * Seekbar for alpha component of tinting color.
66 * Seekbar for red component of tinting color.
70 * Seekbar for green bar of tinting color.
74 * Seekbar for blue bar of tinting color.
96 * Selector for blend type for color tinting.
101 * Computed color for tinting of drawable.
106 * Selected color tinting mode.
171 // Get text labels and seekbars for the four color components: ARGB
208 // Apply the default blend mode and color
226 * Computes the {@link Color} value from selection on ARGB sliders.
228 * @return color computed from selected ARGB values
236 return Color.argb(alpha, red, green, blue);
249 * Update the tint of the image with the color set in the seekbars and selected blend mode.
251 * ARGB color. (Alpha, Red, Green, Blue.) Once a color has been computed using
252 * {@link Color#argb(int, int, int, int)}, it is set togethe with the blend mode on the background
256 public void updateTint(int color, PorterDuff.Mode mode) {
257 // Set the color hint of the image: ARGB
258 mHintColor = color;
260 // Set the color tint mode based on the selection of the Spinner
264 Log.d(TAG, String.format("Updating tint with color [ARGB: %d,%d,%d,%d] and mode [%s]",
265 Color.alpha(color), Color.red(color), Color.green(color), Color.blue(color),
268 // Apply the color tint for the selected tint mode
272 mAlphaText.setText(getString(R.string.value_alpha, Color.alpha(color)));
273 mRedText.setText(getString(R.string.value_red, Color.red(color)));
274 mGreenText.setText(getString(R.string.value_green, Color.green(color)));
275 mBlueText.setText(getString(R.string.value_blue, Color.blue(color)));
298 * Seekbar listener that updates the tinted color when the progress bar has changed.
304 // Update the tinted color from all selections in the UI