Code example for Canvas

Methods: drawRoundRect

0
 
            Paint paint = new Paint(Paint.ANTI_ALIAS_FLAG);
            paint.setColor(Color.RED);
            paint.setStyle(Paint.Style.FILL_AND_STROKE);
 
            Canvas c = new Canvas(mMask);
            c.drawRoundRect(new RectF(0, 0, mThumbnailSize, mThumbnailSize), mThumbnailRadius, mThumbnailRadius, paint);
        } 
 
        public int getCount() { 
            return 100; 
        } 
 
        public Object getItem(int position) {
            return null; 
        } 
 
        public long getItemId(int position) {
            return position;
        } 
Connect your IDE to all the code out there  Get Codota for Java