android Programming Glossary: paint2
Android Maps API v2 draw circle http://stackoverflow.com/questions/13991301/android-maps-api-v2-draw-circle 0x110000FF paint1.setStyle Style.FILL stroke color Paint paint2 new Paint Paint.ANTI_ALIAS_FLAG paint2.setColor 0xFF0000FF paint2.setStyle.. stroke color Paint paint2 new Paint Paint.ANTI_ALIAS_FLAG paint2.setColor 0xFF0000FF paint2.setStyle Style.STROKE icon Bitmap.. new Paint Paint.ANTI_ALIAS_FLAG paint2.setColor 0xFF0000FF paint2.setStyle Style.STROKE icon Bitmap icon BitmapFactory.decodeResource..
Android: Shader behave different in 'onDraw(canvas)' and 'new Canvas(bitmap)' http://stackoverflow.com/questions/5231260/android-shader-behave-different-in-ondrawcanvas-and-new-canvasbitmap 2 canvas.drawBitmap source matrix new Paint Paint paint2 new Paint LinearGradient shader new LinearGradient source.getWidth.. 2 source.getHeight 2 0x7FFFFFFF 0x00FFFFFF TileMode.CLAMP paint2.setShader shader paint2.setXfermode new PorterDuffXfermode android.graphics.PorterDuff.Mode.DST_IN.. 0x00FFFFFF TileMode.CLAMP paint2.setShader shader paint2.setXfermode new PorterDuffXfermode android.graphics.PorterDuff.Mode.DST_IN..
android maps circle overlay, dynamically change radius? http://stackoverflow.com/questions/5722490/android-maps-circle-overlay-dynamically-change-radius Overlay private GeoPoint point private Paint paint1 paint2 public MapCircleOverlay GeoPoint point this.point point paint1.. paint1.setDither false paint1.setStyle Paint.Style.STROKE paint2 new Paint paint2.setARGB 64 0 0 255 @Override public void draw.. false paint1.setStyle Paint.Style.STROKE paint2 new Paint paint2.setARGB 64 0 0 255 @Override public void draw Canvas canvas..
Android - How to draw an arc based gradient http://stackoverflow.com/questions/9037108/android-how-to-draw-an-arc-based-gradient 90 true paint1 RectF rect2 new RectF 200 50 300 150 Paint paint2 new Paint paint2.setStrokeWidth 1 paint2.setStrokeCap Paint.Cap.SQUARE.. rect2 new RectF 200 50 300 150 Paint paint2 new Paint paint2.setStrokeWidth 1 paint2.setStrokeCap Paint.Cap.SQUARE paint2.setStyle.. 50 300 150 Paint paint2 new Paint paint2.setStrokeWidth 1 paint2.setStrokeCap Paint.Cap.SQUARE paint2.setStyle Paint.Style.FILL..
Android Maps API v2 draw circle http://stackoverflow.com/questions/13991301/android-maps-api-v2-draw-circle Paint paint1 new Paint Paint.ANTI_ALIAS_FLAG paint1.setColor 0x110000FF paint1.setStyle Style.FILL stroke color Paint paint2 new Paint Paint.ANTI_ALIAS_FLAG paint2.setColor 0xFF0000FF paint2.setStyle Style.STROKE icon Bitmap icon BitmapFactory.decodeResource.. paint1.setColor 0x110000FF paint1.setStyle Style.FILL stroke color Paint paint2 new Paint Paint.ANTI_ALIAS_FLAG paint2.setColor 0xFF0000FF paint2.setStyle Style.STROKE icon Bitmap icon BitmapFactory.decodeResource YourActivity.getResources.. paint1.setStyle Style.FILL stroke color Paint paint2 new Paint Paint.ANTI_ALIAS_FLAG paint2.setColor 0xFF0000FF paint2.setStyle Style.STROKE icon Bitmap icon BitmapFactory.decodeResource YourActivity.getResources R.drawable.blue circle radius..
Android: Shader behave different in 'onDraw(canvas)' and 'new Canvas(bitmap)' http://stackoverflow.com/questions/5231260/android-shader-behave-different-in-ondrawcanvas-and-new-canvasbitmap 1.0f 1.0f matrix.postTranslate source.getWidth source.getHeight 2 canvas.drawBitmap source matrix new Paint Paint paint2 new Paint LinearGradient shader new LinearGradient source.getWidth 3 2 source.getHeight source.getWidth 3 2 source.getHeight.. source.getWidth 3 2 source.getHeight source.getWidth 3 2 source.getHeight 2 0x7FFFFFFF 0x00FFFFFF TileMode.CLAMP paint2.setShader shader paint2.setXfermode new PorterDuffXfermode android.graphics.PorterDuff.Mode.DST_IN canvas.drawRect source.getWidth.. source.getHeight source.getWidth 3 2 source.getHeight 2 0x7FFFFFFF 0x00FFFFFF TileMode.CLAMP paint2.setShader shader paint2.setXfermode new PorterDuffXfermode android.graphics.PorterDuff.Mode.DST_IN canvas.drawRect source.getWidth source.getHeight..
android maps circle overlay, dynamically change radius? http://stackoverflow.com/questions/5722490/android-maps-circle-overlay-dynamically-change-radius making the UI more fluid public class MapCircleOverlay extends Overlay private GeoPoint point private Paint paint1 paint2 public MapCircleOverlay GeoPoint point this.point point paint1 new Paint paint1.setARGB 128 0 0 255 paint1.setStrokeWidth.. paint1.setStrokeCap Paint.Cap.ROUND paint1.setAntiAlias true paint1.setDither false paint1.setStyle Paint.Style.STROKE paint2 new Paint paint2.setARGB 64 0 0 255 @Override public void draw Canvas canvas MapView mapView boolean shadow Point pt mapView.getProjection.. Paint.Cap.ROUND paint1.setAntiAlias true paint1.setDither false paint1.setStyle Paint.Style.STROKE paint2 new Paint paint2.setARGB 64 0 0 255 @Override public void draw Canvas canvas MapView mapView boolean shadow Point pt mapView.getProjection..
Android - How to draw an arc based gradient http://stackoverflow.com/questions/9037108/android-how-to-draw-an-arc-based-gradient Color.BLUE paint1.setShader gradient1 canvas.drawArc rect1 0 90 true paint1 RectF rect2 new RectF 200 50 300 150 Paint paint2 new Paint paint2.setStrokeWidth 1 paint2.setStrokeCap Paint.Cap.SQUARE paint2.setStyle Paint.Style.FILL SweepGradient gradient2.. gradient1 canvas.drawArc rect1 0 90 true paint1 RectF rect2 new RectF 200 50 300 150 Paint paint2 new Paint paint2.setStrokeWidth 1 paint2.setStrokeCap Paint.Cap.SQUARE paint2.setStyle Paint.Style.FILL SweepGradient gradient2 new SweepGradient.. rect1 0 90 true paint1 RectF rect2 new RectF 200 50 300 150 Paint paint2 new Paint paint2.setStrokeWidth 1 paint2.setStrokeCap Paint.Cap.SQUARE paint2.setStyle Paint.Style.FILL SweepGradient gradient2 new SweepGradient 250 100 Color.RED..
|