material design - Applying gradient on an android button with ripple -
to apply gradient on button create gradient.xml this
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <gradient android:angle="270" android:endcolor="#fff" android:startcolor="#f00" />
when set button background material effects of button gone.
i heard can use backgroundtint property of button cannot equate drawable , color resource allowed.
how can apply gradient background on button while keeping material , feel?
Comments
Post a Comment