Sagar Nayak
Sagar Nayak

Reputation: 2216

Customize Button (ANDROID)

I want to fully customize button in android, with keeping all its juicy material design styles.

I have looked into this, this, and this SO Question but these are not helpful with using the custom drawable into button.

Please do suggest how can i achieve this -

Upvotes: 0

Views: 188

Answers (1)

Atiq
Atiq

Reputation: 14835

you can always have the elevation if you set the button to wrap_content both ways i.e height and width and for the ripple effect you should use RippleDecoratorView.

You don't need to cast it to anything just wrap the button inside it in xml and your good to go, plus its highly customizeable too

Upvotes: 0

Related Questions