如何解决Glide 不支持 drawable 中的属性?
我有这个drawable:
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:width="100dp" android:height="100dp">
<shape android:shape="rectangle">
<solid android:color="?attr/colorSplashScreenBackground"/>
</shape>
</item>
<item android:width="4dp" android:height="40dp" android:left="48dp" android:top="30dp">
<shape>
<solid android:color="?attr/colorPrimary"/>
<corners android:radius="16dp"/>
</shape>
</item>
<item android:width="40dp" android:height="4dp" android:left="30dp" android:top="48dp">
<shape>
<solid android:color="?attr/colorPrimary"/>
<corners android:radius="16dp"/>
</shape>
</item>
</layer-list>
如果我使用 android:src 在 xml 中的 imageView 中加载相同的可绘制对象,它可以正常工作,但如果我使用 Glide 加载它,它仅在我不使用 attrs 时才有效。
有人知道吗? 提前致谢。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。