android Programming Glossary: canvas.drawroundrect
Border over a bitmap with rounded corners in Android http://stackoverflow.com/questions/11012556/border-over-a-bitmap-with-rounded-corners-in-android true canvas.drawARGB 0 0 0 0 paint.setColor Color.BLUE canvas.drawRoundRect rectF roundPx roundPx paint paint.setXfermode new PorterDuffXfermode..
Cropping Circular Area from bitmap in android http://stackoverflow.com/questions/11932805/cropping-circular-area-from-bitmap-in-android true canvas.drawARGB 0 0 0 0 paint.setColor color canvas.drawRoundRect rectF roundPx roundPx paint canvas.drawCircle bitmap.getWidth..
Bitmap image with rounded corners with stroke http://stackoverflow.com/questions/14473113/bitmap-image-with-rounded-corners-with-stroke true canvas.drawARGB 0 0 0 0 paint.setColor color canvas.drawRoundRect rectF roundPx roundPx paint paint.setXfermode new PorterDuffXfermode..
How to create a background with Image, Rounded Corners without borders http://stackoverflow.com/questions/16695023/how-to-create-a-background-with-image-rounded-corners-without-borders true canvas.drawARGB 0 0 0 0 paint.setColor color canvas.drawRoundRect rectF roundPx roundPx paint paint.setXfermode new PorterDuffXfermode..
How to make an ImageView to have rounded corners http://stackoverflow.com/questions/2459916/how-to-make-an-imageview-to-have-rounded-corners true canvas.drawARGB 0 0 0 0 paint.setColor color canvas.drawRoundRect rectF roundPx roundPx paint paint.setXfermode new PorterDuffXfermode..
How to display popup on tapping overlay in android? http://stackoverflow.com/questions/4486864/how-to-display-popup-on-tapping-overlay-in-android 255 255 255 255 Draw inner info window canvas.drawRoundRect infoWindowRect 5 5 getInnerPaint Draw border for info window.. 5 5 getInnerPaint Draw border for info window canvas.drawRoundRect infoWindowRect 5 5 getBorderPaint Draw the MapLocation's name.. infoWindowOffsetY 55 myPaintBlack Draw inner info window canvas.drawRoundRect infoWindowRect 5 5 getInnerPaint Draw border for info window..
ACTION_CANCEL while touching http://stackoverflow.com/questions/6018309/action-cancel-while-touching onFirstDraw progress max firstDraw true canvas.save canvas.drawRoundRect bar 5 5 background canvas.drawCircle progress 20 9 upground..
Custom tap window on Google Map http://stackoverflow.com/questions/6385908/custom-tap-window-on-google-map infoWindowOffsetY Draw inner info window canvas.drawRoundRect infoWindowRect 5 5 getInnerPaint Draw border for info window.. 5 5 getInnerPaint Draw border for info window canvas.drawRoundRect infoWindowRect 5 5 getBorderPaint Draw the MapLocation's name..
ImageView with rounded corners and inner shadow http://stackoverflow.com/questions/9469748/imageview-with-rounded-corners-and-inner-shadow new Paint Paint.ANTI_ALIAS_FLAG mPaint.setColor 0xFF000000 canvas.drawRoundRect frame radius radius mPaint Shader bitmapShader new BitmapShader.. bleed Blur.INNER mPaint.setShader bitmapShader canvas.drawRoundRect frame radius radius mPaint What I'm basically doing is drawing..
Border over a bitmap with rounded corners in Android http://stackoverflow.com/questions/11012556/border-over-a-bitmap-with-rounded-corners-in-android rectF new RectF rect roundPx i paint.setAntiAlias true canvas.drawARGB 0 0 0 0 paint.setColor Color.BLUE canvas.drawRoundRect rectF roundPx roundPx paint paint.setXfermode new PorterDuffXfermode Mode.SRC_IN canvas.drawBitmap bitmap rect rect paint..
Cropping Circular Area from bitmap in android http://stackoverflow.com/questions/11932805/cropping-circular-area-from-bitmap-in-android new Rect 0 0 bitmap.getWidth bitmap.getHeight paint.setAntiAlias true canvas.drawARGB 0 0 0 0 paint.setColor color canvas.drawRoundRect rectF roundPx roundPx paint canvas.drawCircle bitmap.getWidth 2 bitmap.getHeight 2 bitmap.getWidth 2 paint paint.setXfermode..
Bitmap image with rounded corners with stroke http://stackoverflow.com/questions/14473113/bitmap-image-with-rounded-corners-with-stroke rectF new RectF rect final float roundPx pixels paint.setAntiAlias true canvas.drawARGB 0 0 0 0 paint.setColor color canvas.drawRoundRect rectF roundPx roundPx paint paint.setXfermode new PorterDuffXfermode Mode.SRC_IN canvas.drawBitmap bitmap rect rect paint..
How to create a background with Image, Rounded Corners without borders http://stackoverflow.com/questions/16695023/how-to-create-a-background-with-image-rounded-corners-without-borders rectF new RectF rect final float roundPx pixels paint.setAntiAlias true canvas.drawARGB 0 0 0 0 paint.setColor color canvas.drawRoundRect rectF roundPx roundPx paint paint.setXfermode new PorterDuffXfermode Mode.SRC_IN canvas.drawBitmap bitmap rect rect paint..
How to make an ImageView to have rounded corners http://stackoverflow.com/questions/2459916/how-to-make-an-imageview-to-have-rounded-corners rectF new RectF rect final float roundPx pixels paint.setAntiAlias true canvas.drawARGB 0 0 0 0 paint.setColor color canvas.drawRoundRect rectF roundPx roundPx paint paint.setXfermode new PorterDuffXfermode Mode.SRC_IN canvas.drawBitmap bitmap rect rect paint..
How to display popup on tapping overlay in android? http://stackoverflow.com/questions/4486864/how-to-display-popup-on-tapping-overlay-in-android myPaintBlack new Paint Paint myPaintWhite new Paint myPaintWhite.setARGB 255 255 255 255 Draw inner info window canvas.drawRoundRect infoWindowRect 5 5 getInnerPaint Draw border for info window canvas.drawRoundRect infoWindowRect 5 5 getBorderPaint Draw.. 255 255 Draw inner info window canvas.drawRoundRect infoWindowRect 5 5 getInnerPaint Draw border for info window canvas.drawRoundRect infoWindowRect 5 5 getBorderPaint Draw the MapLocation's name myPaintBlack.setColor Color.BLACK myPaintBlack.setTextSize.. 13 canvas.drawText address infoWindowOffsetX 45 infoWindowOffsetY 55 myPaintBlack Draw inner info window canvas.drawRoundRect infoWindowRect 5 5 getInnerPaint Draw border for info window canvas.drawRoundRect infoWindowRect 5 5 getBorderPaint Draw..
ACTION_CANCEL while touching http://stackoverflow.com/questions/6018309/action-cancel-while-touching RectF 0 19 max 21 public void onDraw Canvas canvas if firstDraw onFirstDraw progress max firstDraw true canvas.save canvas.drawRoundRect bar 5 5 background canvas.drawCircle progress 20 9 upground canvas.restore public void setValue int value progress value..
Custom tap window on Google Map http://stackoverflow.com/questions/6385908/custom-tap-window-on-google-map bubbleIcon.getHeight infoWindowRect.offset infoWindowOffsetX infoWindowOffsetY Draw inner info window canvas.drawRoundRect infoWindowRect 5 5 getInnerPaint Draw border for info window canvas.drawRoundRect infoWindowRect 5 5 getBorderPaint Draw.. Draw inner info window canvas.drawRoundRect infoWindowRect 5 5 getInnerPaint Draw border for info window canvas.drawRoundRect infoWindowRect 5 5 getBorderPaint Draw the MapLocation's name int TEXT_OFFSET_X 10 int TEXT_OFFSET_Y 15 String name selectedMapLocation.getName..
ImageView with rounded corners and inner shadow http://stackoverflow.com/questions/9469748/imageview-with-rounded-corners-and-inner-shadow padding padding getWidth padding getHeight padding mPaint new Paint Paint.ANTI_ALIAS_FLAG mPaint.setColor 0xFF000000 canvas.drawRoundRect frame radius radius mPaint Shader bitmapShader new BitmapShader mBitmap TileMode.CLAMP TileMode.CLAMP mPaint new Paint Paint.ANTI_ALIAS_FLAG.. mPaint.setColor 0xFF000000 mPaint.setMaskFilter new BlurMaskFilter bleed Blur.INNER mPaint.setShader bitmapShader canvas.drawRoundRect frame radius radius mPaint What I'm basically doing is drawing a black rounded rectangle first and then drawing a rounded..
|