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

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

python - Error: Unresolved reference 'selenium' What is the reason? -

asp.net ajax - Jquery scroll to element just goes to top of page -