Home
last modified time | relevance | path

Searched refs:getColor (Results 1 – 14 of 14) sorted by relevance

/development/samples/Snake/src/com/example/android/snake/
DBackgroundView.java48 mColors[0] = a.getColor(R.styleable.BackgroundView_colorSegmentOne, Color.RED); in BackgroundView()
49 mColors[1] = a.getColor(R.styleable.BackgroundView_colorSegmentTwo, Color.YELLOW); in BackgroundView()
50 mColors[2] = a.getColor(R.styleable.BackgroundView_colorSegmentThree, Color.BLUE); in BackgroundView()
51 mColors[3] = a.getColor(R.styleable.BackgroundView_colorSegmentFour, Color.GREEN); in BackgroundView()
/development/samples/SoftKeyboard/src/com/example/android/softkeyboard/
DCandidateView.java85 setBackgroundColor(r.getColor(R.color.candidate_background)); in CandidateView()
87 mColorNormal = r.getColor(R.color.candidate_normal); in CandidateView()
88 mColorRecommended = r.getColor(R.color.candidate_recommended); in CandidateView()
89 mColorOther = r.getColor(R.color.candidate_other); in CandidateView()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DColorFilters.java113 if (mPaint.getColor() == 0xFF000000) { in swapPaintColors()
169 if (mPaint.getColor() == 0xFFFFFFFF) { in onTouchEvent()
DColorPickerDialog.java73 int c = mCenterPaint.getColor(); in onDraw()
200 mListener.colorChanged(mCenterPaint.getColor()); in onTouchEvent()
DFingerPaint.java180 new ColorPickerDialog(this, this, mPaint.getColor()).show(); in onOptionsItemSelected()
DWindowSurface.java234 canvas.drawColor(mBackground.getColor()); in run()
/development/samples/ApiDemos/src/com/example/android/apis/animation/
DShapeHolder.java62 public int getColor() { in getColor() method in ShapeHolder
/development/samples/ApiDemos/src/com/example/android/apis/security/
DKeyStoreUsage.java210 mPlainText.setTextColor(getResources().getColor(android.R.color.primary_text_dark)); in onCreate()
219 .setTextColor(getResources().getColor(android.R.color.primary_text_dark)); in onCreate()
475 mCipherText.setTextColor(getResources().getColor(R.color.solid_green)); in onPostExecute()
477 mCipherText.setTextColor(getResources().getColor(R.color.solid_red)); in onPostExecute()
486 mCipherText.setTextColor(getResources().getColor(android.R.color.primary_text_dark)); in onCancelled()
/development/samples/ApiDemos/src/com/example/android/apis/view/
DLabelView.java74 setTextColor(a.getColor(R.styleable.LabelView_textColor, 0xFF000000)); in LabelView()
/development/samples/ApiDemos/src/com/example/android/apis/accessibility/
DCustomViewAccessibilityActivity.java223 final int textColor = context.getResources().getColor(typedValue.resourceId); in BaseToggleButton()
/development/samples/training/InteractiveChart/src/com/example/android/interactivechart/
DInteractiveLineGraphView.java199 mLabelTextColor = a.getColor( in InteractiveLineGraphView()
208 mGridColor = a.getColor( in InteractiveLineGraphView()
213 mAxisColor = a.getColor( in InteractiveLineGraphView()
218 mDataColor = a.getColor( in InteractiveLineGraphView()
/development/samples/ControllerSample/src/com/example/controllersample/
DGameView.java272 if (mShips.valueAt(i).getColor() == color) { in getShipForId()
293 mDescriptorMap.put(deviceString, currentShip.getColor()); in getShipForId()
1041 public int getColor() { in getColor() method in GameView.Ship
/development/samples/HoneycombGallery/src/com/example/android/hcgallery/
DContentFragment.java83 getResources().getColor(R.color.drag_active_color)); in onCreateView()
/development/apps/GestureBuilder/src/com/android/gesture/builder/
DGestureBuilderActivity.java328 mPathColor = resources.getColor(R.color.gesture_color); in onPreExecute()