int[] mcolor = new int[] { R.color.ffdarkred, R.color.ffdarkseagreen }; GradientDrawable mHueGradient = new GradientDrawable(GradientDrawable.Orientation.LEFT_RIGHT, mcolor); strObj.setProgressDrawable(mHueGradient);
mHueGradient.setCornerRadius(15); mHueGradient.setStroke(10, -1); strObj.setProgressDrawable(mHueGradient);