I cut 5 corners of the internet without big pieces.
I am trying to create an animated rectangle to change its length. when he moves to the next length, I want him to animate the new length.
I draw a rectangle as follows:
Paint rectanglePaint = new Paint();
rectanglePaint.setARGB(255, 0, 0, 255);
rectanglePaint.setStrokeWidth(2);
rectanglePaint.setStyle(Style.FILL);
Rect rectangle = new Rect(1, 1, 200, 20);
canvas.drawRect(rectangle, rectanglePaint);
However, I'm not sure how to add ScaleAnimation to the above. I also want to generate only Java code.
Can anyone help?
source
share