Change fill color on vector asset in Android Studio

后端 未结 12 1966
盖世英雄少女心
盖世英雄少女心 2020-12-02 04:09

Android Studio now supports vector assets on 21+ and will generate pngs for lower versions at compile time. I have a vector asset (from the Material Icons) that I want to c

12条回答
  •  感动是毒
    2020-12-02 04:56

    If the vectors are not showing individually set colors using fillColor then they may be being set to a default widget parameter.

    Try adding app:itemIconTint="@color/lime" to activity_main.xml to set a default color type for the widget icons.

    
    
    
        
    
        
    
    
    

    VectorDrawable @ developers.android

提交回复
热议问题