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

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -