I have an image of an arrow that I wish to animate so that I can point to something in the UI. The arrow looks like this...
And I wish to animate it so that it can stretch to look like this...
The challenge of this operation is that I cannot simply use a ScaleAnimation
because the entire image of the arrow would stretch. Instead, I'm looking for some way to only stretch the tail of the arrow while keeping the head the same size. I thought that turning the arrow into a 9-patch image would work, but according to this question, that doesn't work. I've also looked at this question, which has a similar issue didn't provide me a solution.
Does anyone know of a way I can achieve this animation effect?