How I can do a button with left/right side as rounded as circle
问题 I'm trying to do a button with the sides rounded, but when I change the size of screen the button sides left to be rounded as circles, doesn't mantain the aspect ratio (I think). I want to have the next togglebutton in everysize. How I can do an XML with the sides rounded for every resolution? I've read this, but is not a solution (How to make the corners of a button round?) 回答1: The other answers are correct... almost: if you will set corners to some value (let's say 20dp), but your button