Android Support Material Button

In version 28.0.0 (currently in alpha) Android added a Material Button. Here is a quick snippet.


This code makes it pretty easy to get a pretty button that is backwards compatabile. Check out the full list of attributes and some more examples in the references below.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s