Code example for GradientDrawable

Methods: setCornerRadii

0
		color &= CLEAR_ALPHA_MASK;
		final int startColor = color | HIGH_ALPHA;
		final int middleColor = color | MED_ALPHA;
		final int endColor = color | LOW_ALPHA;
		final int[] colors = new int[] { startColor, middleColor, endColor };
		final GradientDrawable d = new GradientDrawable(GradientDrawable.Orientation.LEFT_RIGHT,
				colors);
		d.setCornerRadii(CORNERS);
		return d;
	} 
 
	/** 
	 * Get first day of week as android.text.format.Time constant. 
	 *  
	 * @return the first day of week in android.text.format.Time 
	 */ 
	public static int getFirstDayOfWeek() { 
		final int startDay = Calendar.getInstance().getFirstDayOfWeek();
		if (startDay == Calendar.SATURDAY) {
			return Time.SATURDAY;
		} else if (startDay == Calendar.MONDAY) {