1

我在文本视图的左侧使用可绘制对象来设置我的联系号码的图标。我创建的自定义可绘制对象在 android 版本 Marshmallow 或更高版本中完美运行,但在此之下它不会产生任何效果并且图标看起来很大。我该怎么做才能使其在其他版本中也能正常工作?

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>
4

0 回答 0