Android Lesson Learned: Drawable vector is ignoring color (svg shown black)

  • Posted on: 24 June 2016
  • By: robin

What you need to know when you want to support versions older than L and want to use vector (svg) drawables is that you cannot use the @color thing to pick your color. You need to take the oldfashion way with #HEXCODE. If you don't this will lead to black vector graphics on all devices running something older than L.

[[{"type":"media","view_mode":"media_large","fid":"112","attributes":{"alt":"","class":"media-image","height":"45","typeof":"foaf:Image","width":"480"}}]]

[[{"type":"media","view_mode":"media_large","fid":"113","attributes":{"alt":"","class":"media-image","height":"41","typeof":"foaf:Image","width":"480"}}]]

topic: 
Android, Development, vector, svg
Field: