Searched refs:color (Results 1 - 25 of 81) sorted by relevance

1234

/development/samples/ApiDemos/src/com/example/android/apis/graphics/kube/
H A DGLColor.java43 GLColor color = (GLColor)other;
44 return (red == color.red &&
45 green == color.green &&
46 blue == color.blue &&
47 alpha == color.alpha);
H A DGLVertex.java27 GLColor color; field in class:GLVertex
60 if (color == null) {
66 colorBuffer.put(color.red);
67 colorBuffer.put(color.green);
68 colorBuffer.put(color.blue);
69 colorBuffer.put(color.alpha);
/development/samples/OpenGL/HelloOpenGLES10/src/com/example/android/opengl/
H A DSquare.java43 float color[] = { 0.2f, 0.709803922f, 0.898039216f, 1.0f }; field in class:Square
78 gl.glColor4f( // set color
79 color[0], color[1],
80 color[2], color[3]);
H A DTriangle.java40 float color[] = { 0.63671875f, 0.76953125f, 0.22265625f, 0.0f }; field in class:Triangle
71 gl.glColor4f( // set color:
72 color[0], color[1],
73 color[2], color[3]);
/development/samples/ActionBarCompat/src/com/example/android/actionbarcompat/
H A DActionBarActivity.java79 protected void onTitleChanged(CharSequence title, int color) { argument
80 mActionBarHelper.onTitleChanged(title, color);
81 super.onTitleChanged(title, color);
/development/samples/browseable/SwipeRefreshListFragment/src/com.example.android.swiperefreshlistfragment/
H A DSwipeRefreshListFragmentFragment.java47 * showcase the use of color rather than being something that should be integrated into apps.
112 * <p>A color scheme menu item used for demonstrating the use of SwipeRefreshLayout's color
114 * it just to demonstrate the use of color. Instead you should choose a color scheme based
137 // color resource ids
138 setColorScheme(R.color.color_scheme_1_1, R.color.color_scheme_1_2,
139 R.color.color_scheme_1_3, R.color
[all...]
/development/samples/ApiDemos/src/com/example/android/apis/animation/
H A DShapeHolder.java32 private int color; field in class:ShapeHolder
63 return color;
67 color = value;
/development/samples/browseable/BasicMediaRouter/src/com.example.android.basicmediarouter/
H A DSamplePresentation.java34 * background color and display its text.
66 * Set the background color of the layout and display the color as a String.
68 * @param color The background color
70 public void setColor(int color) { argument
71 mLayout.setBackgroundColor(color);
73 // Display the color as a string on screen
74 String s = getResources().getString(R.string.display_color, color);
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
H A DColorPickerDialog.java29 void colorChanged(int color); argument
41 ColorPickerView(Context c, OnColorChangedListener l, int color) { argument
56 mCenterPaint.setColor(color);
139 private int rotateColor(int color, float rad) { argument
141 int r = Color.red(color);
142 int g = Color.green(color);
143 int b = Color.blue(color);
160 return Color.argb(Color.alpha(color), pinToByte(ir),
224 public void colorChanged(int color) {
225 mListener.colorChanged(color);
[all...]
/development/samples/browseable/DrawableTinting/src/com.example.android.drawabletinting/
H A DDrawableTintingFragment.java40 * 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 fo
256 updateTint(int color, PorterDuff.Mode mode) argument
[all...]
/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/
H A DDigitalWatchFaceService.java158 * Whether the display supports fewer bits for each color in ambient mode. When true, we
185 mAmPmPaint = createTextPaint(resources.getColor(R.color.digital_am_pm));
186 mColonPaint = createTextPaint(resources.getColor(R.color.digital_colons));
382 private void setInteractiveBackgroundColor(int color) { argument
383 mInteractiveBackgroundColor = color;
384 updatePaintIfInteractive(mBackgroundPaint, color);
387 private void setInteractiveHourDigitsColor(int color) { argument
388 mInteractiveHourDigitsColor = color;
389 updatePaintIfInteractive(mHourPaint, color);
392 private void setInteractiveMinuteDigitsColor(int color) { argument
397 setInteractiveSecondDigitsColor(int color) argument
508 addIntKeyIfMissing(DataMap config, String key, int color) argument
566 updateUiForKey(String configKey, int color) argument
[all...]
H A DGles2ColoredTriangleList.java29 * A list of triangles drawn in a single solid color using OpenGL ES 2.0.
50 * Number of components in an OpenGL color. The components are:<ol>
75 * Creates a Gles2ColoredTriangleList to draw a triangle list with the given vertices and color.
80 * @param color color in RGBA order, each in the range [0, 1]
82 public Gles2ColoredTriangleList(Program program, float[] triangleCoords, float[] color) { argument
87 if (color.length != NUM_COLOR_COMPONENTS) {
88 throw new IllegalArgumentException("wrong number of color components");
91 mColor = color;
116 // Pass the MVP matrix, vertex data, and color t
260 bind(float[] mvpMatrix, FloatBuffer vertexBuffer, float[] color) argument
[all...]
/development/samples/SampleSyncAdapter/samplesyncadapter_server/static/css/
H A Dmain.css24 background-color: #fff;
30 color: #0033cc;
/development/samples/Support4Demos/src/com/example/android/supportv4/widget/
H A DSwipeRefreshLayoutActivity.java98 mSwipeRefreshWidget.setColorScheme(R.color.color1, R.color.color2, R.color.color3,
99 R.color.color4);
/development/samples/browseable/AdapterTransition/src/com.example.android.common/view/
H A DSlidingTabStrip.java130 int color = tabColorizer.getIndicatorColor(mSelectedPosition);
134 if (color != nextColor) {
135 color = blendColors(nextColor, color, mSelectionOffset);
146 mSelectedIndicatorPaint.setColor(color);
166 * Set the alpha value of the {@code color} to be the given {@code alpha} value.
168 private static int setColorAlpha(int color, byte alpha) { argument
169 return Color.argb(alpha, Color.red(color), Color.green(color), Color.blue(color));
[all...]
/development/samples/browseable/BasicTransition/src/com.example.android.common/view/
H A DSlidingTabStrip.java130 int color = tabColorizer.getIndicatorColor(mSelectedPosition);
134 if (color != nextColor) {
135 color = blendColors(nextColor, color, mSelectionOffset);
146 mSelectedIndicatorPaint.setColor(color);
166 * Set the alpha value of the {@code color} to be the given {@code alpha} value.
168 private static int setColorAlpha(int color, byte alpha) { argument
169 return Color.argb(alpha, Color.red(color), Color.green(color), Color.blue(color));
[all...]
/development/samples/browseable/FragmentTransition/src/com.example.android.common/view/
H A DSlidingTabStrip.java130 int color = tabColorizer.getIndicatorColor(mSelectedPosition);
134 if (color != nextColor) {
135 color = blendColors(nextColor, color, mSelectionOffset);
146 mSelectedIndicatorPaint.setColor(color);
166 * Set the alpha value of the {@code color} to be the given {@code alpha} value.
168 private static int setColorAlpha(int color, byte alpha) { argument
169 return Color.argb(alpha, Color.red(color), Color.green(color), Color.blue(color));
[all...]
/development/samples/browseable/SlidingTabsBasic/src/com.example.android.common/view/
H A DSlidingTabStrip.java130 int color = tabColorizer.getIndicatorColor(mSelectedPosition);
134 if (color != nextColor) {
135 color = blendColors(nextColor, color, mSelectionOffset);
146 mSelectedIndicatorPaint.setColor(color);
166 * Set the alpha value of the {@code color} to be the given {@code alpha} value.
168 private static int setColorAlpha(int color, byte alpha) { argument
169 return Color.argb(alpha, Color.red(color), Color.green(color), Color.blue(color));
[all...]
/development/samples/browseable/SlidingTabsColors/src/com.example.android.common/view/
H A DSlidingTabStrip.java130 int color = tabColorizer.getIndicatorColor(mSelectedPosition);
134 if (color != nextColor) {
135 color = blendColors(nextColor, color, mSelectionOffset);
146 mSelectedIndicatorPaint.setColor(color);
166 * Set the alpha value of the {@code color} to be the given {@code alpha} value.
168 private static int setColorAlpha(int color, byte alpha) { argument
169 return Color.argb(alpha, Color.red(color), Color.green(color), Color.blue(color));
[all...]
/development/samples/browseable/SwipeRefreshLayoutBasic/src/com.example.android.common/view/
H A DSlidingTabStrip.java130 int color = tabColorizer.getIndicatorColor(mSelectedPosition);
134 if (color != nextColor) {
135 color = blendColors(nextColor, color, mSelectionOffset);
146 mSelectedIndicatorPaint.setColor(color);
166 * Set the alpha value of the {@code color} to be the given {@code alpha} value.
168 private static int setColorAlpha(int color, byte alpha) { argument
169 return Color.argb(alpha, Color.red(color), Color.green(color), Color.blue(color));
[all...]
/development/samples/browseable/SwipeRefreshListFragment/src/com.example.android.common/view/
H A DSlidingTabStrip.java130 int color = tabColorizer.getIndicatorColor(mSelectedPosition);
134 if (color != nextColor) {
135 color = blendColors(nextColor, color, mSelectionOffset);
146 mSelectedIndicatorPaint.setColor(color);
166 * Set the alpha value of the {@code color} to be the given {@code alpha} value.
168 private static int setColorAlpha(int color, byte alpha) { argument
169 return Color.argb(alpha, Color.red(color), Color.green(color), Color.blue(color));
[all...]
/development/samples/browseable/SwipeRefreshMultipleViews/src/com.example.android.common/view/
H A DSlidingTabStrip.java130 int color = tabColorizer.getIndicatorColor(mSelectedPosition);
134 if (color != nextColor) {
135 color = blendColors(nextColor, color, mSelectionOffset);
146 mSelectedIndicatorPaint.setColor(color);
166 * Set the alpha value of the {@code color} to be the given {@code alpha} value.
168 private static int setColorAlpha(int color, byte alpha) { argument
169 return Color.argb(alpha, Color.red(color), Color.green(color), Color.blue(color));
[all...]
/development/samples/browseable/Notifications/Wearable/src/com.example.android.support.wearable.notifications/
H A DWearableListItemLayout.java48 mFadedCircleColor = getResources().getColor(R.color.wl_gray);
49 mChosenCircleColor = getResources().getColor(R.color.wl_blue);
/development/samples/browseable/SpeedTracker/Wearable/src/com.example.android.wearable.speedtracker/ui/
H A DSpeedPickerLayout.java55 mFadedCircleColor = getResources().getColor(R.color.grey);
56 mChosenCircleColor = getResources().getColor(R.color.blue);
/development/samples/browseable/Timer/Wearable/src/com.example.android.wearable.timer/
H A DWearableListItemLayout.java46 mFadedCircleColor = getResources().getColor(R.color.wl_gray);
47 mChosenCircleColor = getResources().getColor(R.color.wl_blue);

Completed in 471 milliseconds

1234