I know that I can set the background
of my button
by using a custom drawable
like this:
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" >
<shape>
<gradient
android:startColor="#ffffff"
android:endColor="#ffffff"
android:angle="270" />
</shape>
</item>
<item android:state_focused="true" >
<shape>
<gradient
android:endColor="#ffffff"
android:startColor="#ffffff"
android:angle="270" />
</shape>
</item>
<item>
<shape>
<gradient
android:endColor="#ffffff"
android:startColor="#ffffff"
android:angle="270" />
</shape>
</item>
</selector>
I also know how to set that.
But my real question is: how do I get the look and feel of a default material design button in just a different color, I can't seem to find the default style of it in the Android source.