Meaningless Drivel is fun!*
The moose likes Android and the fly likes curved button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "curved button" Watch "curved button" New topic
Author

curved button

sam liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 1087
can we create curved buttons in Android ?
Steve Luke
Bartender

Joined: Jan 28, 2003
Posts: 4179
    
  21

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...)


Steve
sam liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 1087
i found good one.

http://android-er.blogspot.com/2012/07/create-round-button.html
 
jQuery in Action, 2nd edition
 
subject: curved button