user735646
user735646

Reputation: 177

Custom rounded button in Android

Can anyone tell me how I can create a custom rounded button in Android (like the one you see in the middle of the picture)?

enter image description here

Upvotes: 1

Views: 247

Answers (2)

JRE.exe
JRE.exe

Reputation: 799

you can use this online button generator which also makes rounded buttons http://angrytools.com/android/button/

Upvotes: 0

Droidman
Droidman

Reputation: 11608

Every View on Android is a rectangle. Considering your picture, let's take a look at the Views (the lines represent View bounds):

enter image description here

The trick is that the big round Button in the middle simply overlaps the other two in some particular Layout. I've quickly tested this assumption and was able to achieve pretty much the same result, here's a screenshot illustrating how this can be done quite easily:

enter image description here

Upvotes: 1

Related Questions