如何在具有不同颜色的 Android XML 中重用矢量

Jus*_*tin 5 xml android colors drawable android-vectordrawable

假设我有一个复杂的矢量图像。路径数据有一个填充颜色。我正在使用需要可绘制资源 ID 的 API。我想给这个 API 三个不同的矢量图像,唯一的区别是颜色。

我找不到一种方法来从 XML 着色矢量图像,只能以编程方式。我认为以下可能有效,但事实并非如此。

<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
        android:src="@drawable/ic_awesome_bar_play"
        android:tint="#a8a8a8" />
Run Code Online (Sandbox Code Playgroud)

我也考虑过使用图层列表,但这不支持着色。任何人都知道如何不制作此矢量图像的三个副本?