Layer list Custom Drawable not working in Android versions below Marshmallow?

351 Views Asked by At

I am using a drawable in the left of a text view to set the icon of my contact number. The custom drawable that I created works perfectly in android versions Marshmallow or greater but below that it is producing no effect and the icon appears large. What can I do to make it work in other versions as well?

My custom_drawable_phone.xml

<?xml version="1.0" encoding="utf-8"?>
 <layer-list xmlns:android="http://schemas.android.com/apk/res/android">
   <item
       android:id="@+id/notification"
       android:drawable="@drawable/ic_phone"
        android:width="16dp"
        android:height="16dp">
     </item>
</layer-list>
0

There are 0 best solutions below