Why isn't my vector drawable scaling as expected?

后端 未结 8 1417
北恋
北恋 2020-11-28 20:18

I am attempting to use vector drawables in my Android app. From http://developer.android.com/training/material/drawables.html (emphasis mine):

In And

8条回答
  •  盖世英雄少女心
    2020-11-28 20:43

    I solve my problem just change size of vector image. From the first it was resource like:

    
    

    And I've changed it to 150dp (size of ImageView in layout with this vector resource) like:

    
    

    It's working for me.

提交回复
热议问题