{"id":7805,"date":"2015-10-28T05:52:18","date_gmt":"2015-10-28T05:52:18","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2015\/10\/28\/android-material-design-buttons-pre-lollipop-open-source-projects-angular-material\/"},"modified":"2015-10-28T05:52:18","modified_gmt":"2015-10-28T05:52:18","slug":"android-material-design-buttons-pre-lollipop-open-source-projects-angular-material","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2015\/10\/28\/android-material-design-buttons-pre-lollipop-open-source-projects-angular-material\/","title":{"rendered":"Android material design buttons &#8211; Pre lollipop-open source projects angular\/material"},"content":{"rendered":"<p><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/7057ee9c94255c6e647df2033e42af40?s=128&amp;d=identicon&amp;r=PG\" \/> <strong>Gabriel<\/strong><\/p>\n<p><em>This requires Android 5.0<\/em><\/p>\n<p><strong>Raised Button<\/strong><\/p>\n<p>Inherit your button style from Widget.Material.Button, and the standard elevation and raising action will automatically be applied.<\/p>\n<pre><code>\n    @drawable\/raised_button_background\n\n<\/code><\/pre>\n<p>Then you need to create a <code>raised_button_background.xml<\/code> file with your button&#8217;s background color inside a ripple tag:<\/p>\n<pre><code>\n    \n\n<\/code><\/pre>\n<p><strong>Flat Button<\/strong><\/p>\n<p>Edit: Instead of my previous advice for flat buttons, you should instead use follow the advice given by Stephen Kaiser below:<\/p>\n<pre><code>\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Gabriel This requires Android 5.0 Raised Button Inherit your button style from Widget.Material.Button, and the standard elevation and raising action will automatically be applied. @drawable\/raised_button_background Then you need to create a raised_button_background.xml file with your button&#8217;s background color inside a ripple tag: Flat Button Edit: Instead of my previous advice for flat buttons, you should [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7805","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7805","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7805"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7805\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7805"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7805"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7805"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}