Is there a way to make following code compatible with lower API levels:
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item android:drawable="?android:attr/selectableItemBackground"/> <item android:gravity="bottom"> <shape android:shape="rectangle"> <size android:height="1px"/> <solid android:color="#ccc"/> </shape> </item> </layer-list>
The part: android:drawable="?android:attr/selectableItemBackground"
produces this message:
Using theme references in XML drawables requires API level 21 (current min is 15)