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
Try setGradientRadius(). setCornerRadius() set wrong size.
GradientDrawable drawable = (GradientDrawable)image.getBackground(); drawable.setGradientRadius(radiuspx);