I have a problem with rendering vector drawable on Motorola pre-lollipop phones. I tested it on Moto G and other with KitKat. Every time I start application some icons look corrupted and some are missing at all. And after each launch they are corrupted in a different way. On Lenovo, Samsung, AOSP Emulator and others with JB+ till Nougat everything is ok. Only Motorola phones can not render vector drawables with support library well. Does anybody have the same issue?
A VectorDrawable is a vector graphic defined in an XML file as a set of points, lines, and curves along with its associated color information. The major advantage of using a vector drawable is image scalability.
Vector Asset Studio adds an XML file defining the vector drawable to the project in the app/src/main/res/drawable/ folder. From the Android view of the Project window, you can view the generated vector XML file in the drawable folder.
Vector Drawables are also supported in cases like TextView's drawableLeft property. go this link Android Studio 1.4
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:srcCompat="@drawable/icon"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With