现在支持库完全支持矢量图像,我正试图在我的应用程序中尽可能多地切换到矢量图像.我遇到的一个问题是,似乎无法重复它们.
使用位图图像,可以使用以下xml:
<bitmap
xmlns:android="http://schemas.android.com/apk/res/android"
android:src="@drawable/repeat_me"
android:tileMode="repeat"
/>
Run Code Online (Sandbox Code Playgroud)
这不起作用,因为矢量图像无法用于位图:https://code.google.com/p/android/issues/detail? id = 187566
是否还有其他方法来平铺/重复矢量图像?