Jigar Adesara
Jigar Adesara

Reputation: 85

Custom shape design for button in android

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.

I want to draw a custom shape like this

Thanks in advance.

Upvotes: 0

Views: 1859

Answers (2)

Mouvre
Mouvre

Reputation: 274

Here is the information about custom buttons. In a different approach you can use canvas and onClickListener.

Upvotes: 0

Soorya
Soorya

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

Related Questions