Arash
Arash

Reputation: 3061

Animating Draw Programmatically

My app teaches how to write letters and I want to draw for example letter "A" programmatically.

I do not want to draw it pixel by pixel(it is so hard!)

What other ways to do that?

UPDATE: I want to show how to write "A" not just showing A in the screen

Upvotes: 0

Views: 900

Answers (2)

Hamad
Hamad

Reputation: 5152

if you are using Canvas, you can draw text on canvas using this:

canvas.drawText("A",marginFromLeft,MarginFromRight, paint);

also you can draw bitmap of A on canvas using this:

canvas.drawBitmap(bmp,marginLeft,marginTop, paint);

after drawing this,you can animate an other image like circle using animationSet:

anim One:   animate circle moving from bottom left to top center of A
anim Two:   animate circle moving from top center of A to bottom left Right
anim Three: animate circle moving from left-verticaly-center to right-verticaly-center.

Upvotes: 1

Erik Živković
Erik Živković

Reputation: 5425

Romain Guy recently wrote a blog post on how to do path tracing using paths. If you can construct paths yourself (or finding a method for creating correct paths for letters) you could use the information from his blog to do something.

http://www.curious-creature.org/2013/12/21/android-recipe-4-path-tracing/#more-1904

Good luck

Upvotes: 2

Related Questions