I have a button say myButton
. I want to set the top left corner radius of the button programmatically.
I'm looking for something like
myButton.setTopLeftCornerRadius(10);
I have looked for a method like 'setcornerradius' in eclipse but got nothing.
You can use shape drawable for this or rounded corner background Image. For shape drawable detail please see this post.
How to set corner radiuses for the button in java code?
Cheers.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With