Home » Android » android – tileMode repeat with vector drawable

android – tileMode repeat with vector drawable

Posted by: admin May 14, 2020 Leave a comment

Questions:

We can have a repeat drawable by using tileMode="repeat"

<bitmap
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:src="@drawable/some_png"
    android:tileMode="repeat"
    android:dither="true" />

It only works if the drawable is a bitmap.

Is there any similar way to repeat a vector drawable?

How to&Answers: