medyo / Fancybuttons

Icons, Borders, Radius ... for Android buttons
1.77k stars 397 forks source link

How do I create circle buttons? #5

Closed jessejohnson closed 9 years ago

jessejohnson commented 9 years ago

Hi, You've got a really awesome library. Thanks for making Android buttons saner :dancer: But, I can't figure out how to make circular fancybuttons. I'm setting fancy:radius="30dp" but it feels hacky, and doesn't always yield perfectly round buttons.

I see some circle buttons in your documentation images. Is there something I'm missing?

medyo commented 9 years ago

Well there is no special method for that right now, but as you said you can use the radius with value equals to the half of button size. like 30dp for a button of 60dp HeightxWidth. So you can create a perfect circle effect.

jessejohnson commented 9 years ago

Okay. I hope there'll be a feature like that sometime in the future. Thanks :)