Android vector drawable app:srcCompat not showing images

前端 未结 8 712
误落风尘
误落风尘 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:07

    I had a similar issue and after following all steps from Jared Burrows's answer the problem was not solved.

    Turns out that the "app" namespace inside my layout file was set as:

    xmlns:app="http://schemas.android.com/tools"
    

    instead of:

    xmlns:app="http://schemas.android.com/apk/res-auto"
    

    After changing this the problem was fixed

提交回复
热议问题