material design - Ripple requires API level 21 (current min is 11), android? -


i have below drawable

<?xml version="1.0" encoding="utf-8"?> <ripple xmlns:android="http://schemas.android.com/apk/res/android" android:color="?android:colorcontrolhighlight" >  <item>     <shape android:shape="oval" >         <solid android:color="?android:coloraccent" />     </shape> </item> 

and getting error

<ripple> requires api level 21 (current min 11) 

how solve it?

you using minsdk=11.

you can't use drawable api<21.

you have use diffent versions of drawable file.
put code in res/drawable-v21/myripple.xml , create different res/drawable/myripple.xml


Comments

Popular posts from this blog

node.js - How to mock a third-party api calls in the backend -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

matlab - 0-by-1 sym - What do I need to change in order to get proper symbolic results? -