Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//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;
    }
}