• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

curved button

 
sam liya
Ranch Hand
Posts: 1240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can we create curved buttons in Android ?
 
Steve Luke
Bartender
Posts: 4181
22
IntelliJ IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. But how you do it depends on what you mean by curved buttons.

Generally, you use Drawables as a background to define a button's shape. For simple things you could use a Shape, but if you can use 9-Patch images to get more complex (shading, complex curves, etc...)
 
sam liya
Ranch Hand
Posts: 1240
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic