Code example for GradientDrawable

Methods: setCornerRadii

0
	} 
 
	public void applyTo(View v) {
		if (colorsInGradient != null && gradientOrientation != null
				&& cornerRadii != null) {
			GradientDrawable s = new GradientDrawable(gradientOrientation,
					colorsInGradient);
			s.setCornerRadii(cornerRadii);
			v.setBackgroundDrawable(s);
		} 
	} 
 
	/** 
	 * @param leftTop 
	 * @param rightTop 
	 * @param rightBottom 
	 * @param leftBottom 
	 * @return 
	 */ 
	public static float[] genCornerArray(int leftTop, int rightTop,
Stop searching for code, let great code find you!  Add Codota to your java IDE