I want to set the rounded corners without xml. How can I do it in java code?
Button b = new Button (this); b.set???? (??) ;
I tried to wri
Use GradientDrawable
GradientDrawable gdDefault = new GradientDrawable(); gdDefault.setColor(bgColor); gdDefault.setCornerRadius(cornerRadius); gdDefault.setStroke(strokeWidth, strokeColor);