Android vector drawable app:srcCompat not showing images

前端 未结 8 664
误落风尘
误落风尘 2020-11-28 04:38

I\'m using support library to show vector images on android kitkat. When I test my app on emulater I don\'t see any of these images. I made a separate layout for android lol

相关标签:
8条回答
  • 2020-11-28 05:21

    Incase anyone else runs into this problem and is using androidx, then try using androidx.appcompat.widget.AppCompatImageView

    0 讨论(0)
  • 2020-11-28 05:25

    Additional be sure that your vector drawables located in drawable and not in drawable-anydpi.

    I end up often with problems if the graphics located in drawable-anydpi folder.

    0 讨论(0)
提交回复
热议问题