Java tutorial
//package com.java2s; //License from project: Apache License import android.graphics.Color; import android.graphics.drawable.GradientDrawable; public class Main { /** * * @param radius * @return * @deprecated Change to use ViewUtils. */ @Deprecated public static GradientDrawable getShapeDrawable(float radius) { GradientDrawable shape = new GradientDrawable(); shape.setColor(Color.TRANSPARENT); shape.setCornerRadius(radius); return shape; } }