android Programming Glossary: color.black
Android ICS and MJPEG using AsyncTask http://stackoverflow.com/questions/10550139/android-ics-and-mjpeg-using-asynctask destRect destRect bm.getWidth bm.getHeight c.drawColor Color.BLACK c.drawBitmap bm null destRect p if showFps p.setXfermode.. overlayTextColor Color.WHITE overlayBackgroundColor Color.BLACK ovlPos MjpegView.POSITION_LOWER_RIGHT displayMode MjpegView.SIZE_STANDARD..
Android - shadow on text? http://stackoverflow.com/questions/2486936/android-shadow-on-text on a bitmap and I wanted to be shadowed... paint.setColor Color.BLACK paint.setTextSize 55 paint.setFakeBoldText false paint.setShadowLayer.. 55 paint.setFakeBoldText false paint.setShadowLayer 1 0 0 Color.BLACK This only shadows my whole view... Thankful for any tips android..
Declaring a custom android UI element using XML http://stackoverflow.com/questions/2695646/declaring-a-custom-android-ui-element-using-xml test a.getColor R.styleable.MyCustomView_android_textColor Color.BLACK Log.i test a.getString R.styleable.MyCustomView_extraInformation..
Change background color of android menu [duplicate] http://stackoverflow.com/questions/2719173/change-background-color-of-android-menu sets the text color TextView view .setTextColor Color.BLACK sets the text size TextView view .setTextSize 18 return..
Change the background color of the options menu http://stackoverflow.com/questions/2944244/change-the-background-color-of-the-options-menu new Runnable public void run v.setBackgroundColor Color.BLACK try in Android 3.2 IconMenuItemView implemented with TextView..
How to draw a path on a map using kml file? http://stackoverflow.com/questions/3109158/how-to-draw-a-path-on-a-map-using-kml-file #65306 start if mode 1 if defaultColor 999 paint.setColor Color.BLACK Color.BLUE else paint.setColor defaultColor RectF oval new RectF.. mode 3 the last path if defaultColor 999 paint.setColor Color.BLACK Color.GREEN else paint.setColor defaultColor Point point2 new..
Android and MJPEG http://stackoverflow.com/questions/3205191/android-and-mjpeg destRect destRect bm.getWidth bm.getHeight c.drawColor Color.BLACK c.drawBitmap bm null destRect p if showFps p.setXfermode.. overlayTextColor Color.WHITE overlayBackgroundColor Color.BLACK ovlPos MjpegView.POSITION_LOWER_RIGHT displayMode MjpegView.SIZE_STANDARD..
How to draw a line in android http://stackoverflow.com/questions/3616676/how-to-draw-a-line-in-android DrawView Context context super context paint.setColor Color.BLACK @Override public void onDraw Canvas canvas canvas.drawLine..
Custom ImageView with drop shadow http://stackoverflow.com/questions/3693234/custom-imageview-with-drop-shadow mPaint.setAntiAlias true mPaint.setShadowLayer 2f 1f 1f Color.BLACK @Override protected void onDraw Canvas canvas Rect r mRect Paint.. true paint.setShadowLayer 5.5f 6.0f 6.0f Color.BLACK canvas.drawColor Color.GRAY canvas.drawRect 50 50 50 bmp.getWidth..
how to customize listview row android http://stackoverflow.com/questions/4407865/how-to-customize-listview-row-android textview int myColor if myText.substring 0 1 a myColor Color.BLACK else .... convertView.findViewById R.id.myTextViewId .setBackground..
Capturing Sound for Analysis and Visualizing Frequencies in Android http://stackoverflow.com/questions/5511250/capturing-sound-for-analysis-and-visualizing-frequencies-in-android onProgressUpdate double ... toTransform canvas.drawColor Color.BLACK for int i 0 i toTransform 0 .length i int x i int downy int.. onProgressUpdate double ... toTransform canvas.drawColor Color.BLACK for int i 0 i toTransform 0 .length i int x i int downy int..
Android, canvas: How do I clear (delete contents of) a canvas (= bitmaps), living in a surfaceView? http://stackoverflow.com/questions/5729377/android-canvas-how-do-i-clear-delete-contents-of-a-canvas-bitmaps-livin a new layout try at the game Just call Canvas.drawColor Color.BLACK or whatever color you want to clear your Canvas with. And how..
android change text color of items in spinner http://stackoverflow.com/questions/5836254/android-change-text-color-of-items-in-spinner 1 tv.setTextColor Color.BLUE break default tv.setTextColor Color.BLACK break return v pSpinner.setAdapter spinnerAdapter The layout..
Android canvas draw rectangle http://stackoverflow.com/questions/7344497/android-canvas-draw-rectangle @Override public void onDraw Canvas canvas paint.setColor Color.BLACK paint.setStrokeWidth 3 canvas.drawRect 30 30 80 80 paint paint.setStrokeWidth..
Android ICS and MJPEG using AsyncTask http://stackoverflow.com/questions/10550139/android-ics-and-mjpeg-using-asynctask synchronized mSurfaceHolder try bm mIn.readMjpegFrame destRect destRect bm.getWidth bm.getHeight c.drawColor Color.BLACK c.drawBitmap bm null destRect p if showFps p.setXfermode mode if ovl null height ovlPos 1 1 destRect.top destRect.bottom.. 12 overlayPaint.setTypeface Typeface.DEFAULT overlayTextColor Color.WHITE overlayBackgroundColor Color.BLACK ovlPos MjpegView.POSITION_LOWER_RIGHT displayMode MjpegView.SIZE_STANDARD dispWidth getWidth dispHeight getHeight public..
Android - shadow on text? http://stackoverflow.com/questions/2486936/android-shadow-on-text text in android I have the following code which is applied on a bitmap and I wanted to be shadowed... paint.setColor Color.BLACK paint.setTextSize 55 paint.setFakeBoldText false paint.setShadowLayer 1 0 0 Color.BLACK This only shadows my whole view..... be shadowed... paint.setColor Color.BLACK paint.setTextSize 55 paint.setFakeBoldText false paint.setShadowLayer 1 0 0 Color.BLACK This only shadows my whole view... Thankful for any tips android share improve this question You should be able to..
Declaring a custom android UI element using XML http://stackoverflow.com/questions/2695646/declaring-a-custom-android-ui-element-using-xml a.getString R.styleable.MyCustomView_android_text Log.i test a.getColor R.styleable.MyCustomView_android_textColor Color.BLACK Log.i test a.getString R.styleable.MyCustomView_extraInformation Don't forget this a.recycle R.styleable.MyCustomView is..
Change background color of android menu [duplicate] http://stackoverflow.com/questions/2719173/change-background-color-of-android-menu color view.setBackgroundResource R.color.androidcolor sets the text color TextView view .setTextColor Color.BLACK sets the text size TextView view .setTextSize 18 return view catch InflateException e catch ClassNotFoundException..
Change the background color of the options menu http://stackoverflow.com/questions/2944244/change-the-background-color-of-the-options-menu any setting we make now final View v view new Handler .post new Runnable public void run v.setBackgroundColor Color.BLACK try in Android 3.2 IconMenuItemView implemented with TextView guard against possible future change in implementation..
How to draw a path on a map using kml file? http://stackoverflow.com/questions/3109158/how-to-draw-a-path-on-a-map-using-kml-file Point point new Point projection.toPixels gp1 point mode 1 #65306 start if mode 1 if defaultColor 999 paint.setColor Color.BLACK Color.BLUE else paint.setColor defaultColor RectF oval new RectF point.x mRadius point.y mRadius point.x mRadius point.y.. point.y point2.x point2.y paint mode 3 #65306 end else if mode 3 the last path if defaultColor 999 paint.setColor Color.BLACK Color.GREEN else paint.setColor defaultColor Point point2 new Point projection.toPixels gp2 point2 paint.setStrokeWidth..
Android and MJPEG http://stackoverflow.com/questions/3205191/android-and-mjpeg synchronized mSurfaceHolder try bm mIn.readMjpegFrame destRect destRect bm.getWidth bm.getHeight c.drawColor Color.BLACK c.drawBitmap bm null destRect p if showFps p.setXfermode mode if ovl null height ovlPos 1 1 destRect.top destRect.bottom.. 12 overlayPaint.setTypeface Typeface.DEFAULT overlayTextColor Color.WHITE overlayBackgroundColor Color.BLACK ovlPos MjpegView.POSITION_LOWER_RIGHT displayMode MjpegView.SIZE_STANDARD dispWidth getWidth dispHeight getHeight public..
How to draw a line in android http://stackoverflow.com/questions/3616676/how-to-draw-a-line-in-android public class DrawView extends View Paint paint new Paint public DrawView Context context super context paint.setColor Color.BLACK @Override public void onDraw Canvas canvas canvas.drawLine 0 0 20 20 paint canvas.drawLine 20 0 0 20 paint The activity..
Custom ImageView with drop shadow http://stackoverflow.com/questions/3693234/custom-imageview-with-drop-shadow Context context super context mRect new Rect mPaint new Paint mPaint.setAntiAlias true mPaint.setShadowLayer 2f 1f 1f Color.BLACK @Override protected void onDraw Canvas canvas Rect r mRect Paint paint mPaint canvas.drawRect r paint super.onDraw canvas.. getResources R.drawable.omen Paint paint new Paint paint.setAntiAlias true paint.setShadowLayer 5.5f 6.0f 6.0f Color.BLACK canvas.drawColor Color.GRAY canvas.drawRect 50 50 50 bmp.getWidth 50 bmp.getHeight paint canvas.drawBitmap bmp 50 50 null..
how to customize listview row android http://stackoverflow.com/questions/4407865/how-to-customize-listview-row-android null Select your color and apply it to your textview int myColor if myText.substring 0 1 a myColor Color.BLACK else .... convertView.findViewById R.id.myTextViewId .setBackground myColor Of course you will need to set the same ID..
Capturing Sound for Analysis and Visualizing Frequencies in Android http://stackoverflow.com/questions/5511250/capturing-sound-for-analysis-and-visualizing-frequencies-in-android AudioRecord Recording Failed return null protected void onProgressUpdate double ... toTransform canvas.drawColor Color.BLACK for int i 0 i toTransform 0 .length i int x i int downy int 100 toTransform 0 i 10 int upy 100 canvas.drawLine x downy x.. Recording Failed return null @Override protected void onProgressUpdate double ... toTransform canvas.drawColor Color.BLACK for int i 0 i toTransform 0 .length i int x i int downy int 100 toTransform 0 i 10 int upy 100 canvas.drawLine x downy..
Android, canvas: How do I clear (delete contents of) a canvas (= bitmaps), living in a surfaceView? http://stackoverflow.com/questions/5729377/android-canvas-how-do-i-clear-delete-contents-of-a-canvas-bitmaps-livin this question How do I clear or redraw the WHOLE canvas for a new layout try at the game Just call Canvas.drawColor Color.BLACK or whatever color you want to clear your Canvas with. And how can I update just a part of the screen There is no such method..
android change text color of items in spinner http://stackoverflow.com/questions/5836254/android-change-text-color-of-items-in-spinner position case 0 tv.setTextColor Color.RED break case 1 tv.setTextColor Color.BLUE break default tv.setTextColor Color.BLACK break return v pSpinner.setAdapter spinnerAdapter The layout that is being inflated is a custom layout called row.xml...
Android canvas draw rectangle http://stackoverflow.com/questions/7344497/android-canvas-draw-rectangle new Paint public DrawView Context context super context @Override public void onDraw Canvas canvas paint.setColor Color.BLACK paint.setStrokeWidth 3 canvas.drawRect 30 30 80 80 paint paint.setStrokeWidth 0 paint.setColor Color.CYAN canvas.drawRect..
|