Java tutorial
//package com.java2s; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.RectF; public class Main { private static void drawAndroidBody(Canvas canvas, Paint paint, float w, float h) { paint.setColor(Color.parseColor("#43A047")); canvas.drawRoundRect(new RectF(-w / 2, 0, w / 2, h), w / 10, w / 10, paint); } }