Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.graphics.drawable.ColorDrawable;

public class Main {
    /**
     * @param color The color
     * @return A {@link android.graphics.drawable.ColorDrawable}
     */
    public static ColorDrawable getColorDrawable(int color) {
        return new ColorDrawable(color);
    }
}