1

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

user735646
  • 177
  • 2
  • 16

2 Answers2

1

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

Droidman
  • 11,485
  • 17
  • 93
  • 141
  • @poitroae sorry, but this is a 2-yers old answer and I don't have any related code. And as far as I remember *I didn't have* any code, as you can see on the screenshot this is just a simple visual editor mock up – Droidman Apr 05 '16 at 10:33
0

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

JRE.exe
  • 801
  • 1
  • 15
  • 28