Skip to main content

All Questions

0 votes
0 answers
17 views

About dynamic generation and loading of VectorDrawables

I'm in the development of an android app that needs to show VectorDrawables in a dynamic fashion, so I wrote a C library that outputs these for me based on an input string. I also integrated the usual ...
user1476851's user avatar
1 vote
2 answers
426 views

AnimatedVectorDrawable support < 24

I have an animated vector drawable asset in my drawables folder. I use the following code to run it on button click val myVectorDrawable = ResourcesCompat.getDrawable( resources, ...
Hamza Sharaf's user avatar
1 vote
1 answer
280 views

AnimatedVectorDrawable - reset() is not working properly on some Huawei devices

We use AnimatedVectorDrawable.reset() to reset the animation to its initial state. This works well on most of the devices. While testing we noticed that on some Huawei devices when reset() is called ...
Mario Kutlev's user avatar
  • 5,056
0 votes
0 answers
246 views

How can I get AnimatorSet from AnimatedVectorDrawableCompat?

I was trying to animate a vector drawable and adjust start time by using AnimatorInflater.loadAnimator and setStartDelay, but it appears to be AnimatorSet of AnimatedVectorDrawableCompat having ...
Peter's user avatar
  • 311
3 votes
0 answers
82 views

Why doesn't AnimatedVectorDrawable support seek?

At the Google IO presentation "Get Animated", Nick Butcher mentions that you can't seekTo on animated vector drawables. https://youtu.be/N_x7SV3I3P0 For my purposes this is fine. I can chop up my ...
Maarten's user avatar
  • 7,155
3 votes
0 answers
927 views

How to Animate A Gradient using AnimatedVectorDrawables?

At 4:40 of Draw Me A Rainbow talk by Nick Butcher at Android Dev Summit 2018, he mentions animating a gradient. He talks about using repeat tileMode for a gradient and creating a rainbow like effect ...
Mehdi Haghgoo's user avatar
11 votes
3 answers
20k views

How to add Animated Vector Drawable Animation?

I am trying to animate a vector path to a different path in my android app for testing but its not working properly . no animation is displayed on screen and neither any animation is shown. My vector ...
IO Devs's user avatar
  • 383
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
0 votes
0 answers
136 views

Spring Animation on Vector Path in Android

Spring Animation can be applied to views. Is there any way I can apply Spring Animation on path of a VectorDrawable. I need some physics based Animation on Vector path. How can do that? Any suggestion ...
Abu Yousuf's user avatar
  • 5,980
1 vote
2 answers
2k views

Animating many parts of a vector drawable simultaneously

Using AnimatedVectorDrawables, one can apply certain animations to parts of a vectordrawable (see here). For example consider the vectordrawable, called vectordrawable.xml: <vector xmlns:android="...
Arkay's user avatar
  • 469
1 vote
1 answer
1k views

dynamic VectorDrawable animation in Java instead of animated vector drawable

I have been using the animated-vector in xml to animate some of my vectors by using trimPathEnd etc with something like this for example : <animated-vector xmlns:android="http://schemas.android....
Amr El Aswar's user avatar
  • 3,475
3 votes
0 answers
832 views

Android: Start AnimatedVectorDrawable animation mid way

Background: I am looking to create a countdown timer similar to the native Clock app's Timer. I am very new to Android animations so I have been evaluating various solutions. I was looking to go with ...
Smalls's user avatar
  • 362
3 votes
0 answers
169 views

Custom path cap on a Vector Drawable?

Is it possible to have a custom cap at the end of a path of on a vector drawable like an SVG Marker? If not, is there a way to find the location of the end of the path from the Vector Drawable so I ...
bkach's user avatar
  • 1,431
2 votes
0 answers
388 views

Animated Vector drawable: Animate from "round" strokeLineCap to "butt" strokeLineCap

Is there a way to animate a vector drawable from a "round" strokeLineCap to a "butt" strokeLineCap? This is what I have tried: but all of these have crashed my app <objectAnimator android:...
vanlooverenkoen's user avatar
1 vote
0 answers
343 views

AnimatorInflater.loadAnimator doesn't work

I want to control animation while playing, So I used object animator. below code doesn't play animation at all to control. ObjectAnimator anim1 = (ObjectAnimator) AnimatorInflater.loadAnimator(this,...
chethan's user avatar
  • 426

15 30 50 per page