Code example for GradientDrawable

Methods: setCornerRadii

0
		} 
 
		public void applyTo(View v, int[] c) {
 
			if (c != null && gradientOrientation != null) {
				GradientDrawable s = new GradientDrawable(gradientOrientation,
						c);
				s.setCornerRadii(cornerRadii);
				v.setBackgroundDrawable(s);
			} 
 
		} 
 
		/** 
		 * @param leftTop 
		 * @param rightTop 
		 * @param rightBottom 
		 * @param leftBottom 
		 * @return 
		 */ 
		public static float[] genCornerArray(int leftTop, int rightTop,