Skip to main content

All Questions

1 vote
1 answer
192 views

Path traversal animation in Shape-Shifter

I am using ShapeShifter at ShapeShifter I want to create a vector animation where a small rectangle traverses the border of a rectangle. Sounds like an easy animation to create! Shapeshifter provides ...
i_o's user avatar
  • 789
1 vote
0 answers
376 views

Simulate “Inner Shadow” for Android VectorDrawable (Vector Drawable)

My goal is to create an Android adaptive icon using vector drawable (XML) for -anydpi-v26. res drawable-anydpi-v26 ic_launcher_background.xml ic_launcher_foreground.xml Apparently, filter effects ...
ivadham's user avatar
  • 33
1 vote
1 answer
300 views

Change tint color in Kotlin

I want to change color of vector image at runtime. XML example (ImageView): app:tint="@android:color/holo_green_light" How do I change this in Kotlin?
GeoCap's user avatar
  • 515
2 votes
1 answer
519 views

Android Vector: Why is the stroke color not adopted?

I took a vector xml file from a blogger and now have a different result than him. With his vector you can clearly see the edges while with my vector they only have the color gradient. However, if I ...
Yannick's user avatar
  • 135
0 votes
1 answer
1k views

Center path of android vector

This is my image width and height = 125x125 and the viewport is 62x62, my problem is it's not centered, I want some help to center the path. Original SVG <vector android:height="125dp" android:...
user avatar
2 votes
1 answer
259 views

Android Vector image is becoming pixelated after scaling/zooming

I have a vector xml (derived from an SVG) that I'm drawing via an ImageView on a FrameLayout, zoomed in. It's noticeably pixelated, even though the source is a vector. I've tried playing with the ...
The Shoe Shiner's user avatar
0 votes
1 answer
353 views

drawing images with layer-lists for android

I have been trying to create a vector similar to this image as an android drawable XML but I have been having a few issues. I am trying to create it as a layer-list so I can have several primitives (...
Abdelsalam ElTamawy's user avatar
1 vote
3 answers
6k views

Change vector asset color programmatically when clicked

I have created the following vector asset and inserted it into an Imagebutton. I had like that the heart will change its color to red once it was clicked and return to transparent once it was clicked ...
Ben's user avatar
  • 1,829
-1 votes
2 answers
1k views

How to create vector asset from external rasterized images without getting "Very long vector path"

Almost every time I create vector assets from png/jpeg files, I get this warning Very long vector path (3064 characters), which is bad for performance. Considering reducing precision, removing ...
S.R's user avatar
  • 2,829
0 votes
0 answers
25 views

vectorial gets overlayed by background color

I get a strange problem with vectorials lately on multiple devices. Sometimes vectorial drawable gets half overlayed by the background color of an imageview or a background color of a layout like ...
Ana Koridze's user avatar
  • 1,677
0 votes
2 answers
2k views

Circle vector inside another one

I need to put inside a circle shape another one, but i can't do it. I created the first shape (a circle with 2 lines. One on top, the other on bottom) and i need to put a simple circle shape inside of ...
Atlas91's user avatar
  • 5,874
0 votes
2 answers
1k views

Stop AnimatedVectorDrawable animation after playing

I have an AnimatedVectorDrawable that animates from play to pause state when clicked. ... animatedVectorDrawable.registerAnimationCallback(new Animatable2.AnimationCallback() { @...
Boron's user avatar
  • 129
2 votes
1 answer
384 views

Vector image throwing android.content.res.Resources$NotFoundException in some devices

I am using a vector image (svg) as a background in one layout. I added it with the menu File -> New -> Vector Asset... and I have it as an .xml in my drawable folder. When I generate the ....
manuel's user avatar
  • 366
1 vote
1 answer
3k views

Broken vector drawable with android fillType = evenOdd

android:fillType="evenOdd" make the vectror drawable broken on Android 21 is there anyway we can fix this vector? I also decompile the release.apk and found that they remove android:fillType="...
UmAnusorn's user avatar
  • 10.9k
35 votes
5 answers
52k views

AndroidStudio import SVG with ERROR@ <mask> is not supported

I got message "ERROR@ <mask> is not supported" when try to import SVG using Android Studio 3.0.1 Build #AI-171.4443003, built on November 10, 2017 JRE: 1.8.0_152-release-915-b08 x86_64 JVM: ...
UmAnusorn's user avatar
  • 10.9k

15 30 50 per page