Reputation: 85
I'm trying to create a shape for Button that would have one side round and other right side slop , the actual image and a shadow.
I'm tried alot but i'm not understand how to draw it and how to draw shadow for same.
Thanks in advance.
Upvotes: 0
Views: 1859
Reputation: 274
Here is the information about custom buttons. In a different approach you can use canvas and onClickListener.
Upvotes: 0
Reputation: 701
Design the shape whatever you want in any designing tool, export it as SVG. Then, in android studio right click on "drawable" folder -> new vector asset, then choose the exported SVG file from your local disc. Now you can able to set the created drawable as button background.
Upvotes: 1