Is there a difference between using vector drawable solid color + fillAlpha vs transparent color?

Viewed 17

Lets say we have 2 otherwise identical XML drawables:

<vector>
  <path
      ...
      android:fillColor="#80FFFFFF"/>
</vector>

vs

<vector>
  <path
      ...
      android:fillAlpha="0.5"
      android:fillColor="#FFFFFF"/>
</vector>

They both appear to work the same, but is there any difference, e.g. compatibility or performance wise? The first approach is slightly more convenient in keeping @color definitions consistent.

0 Answers
Related