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
create a shape in your drawable folder and set the desired radius and set this drawable as background to your button: