Saturday, July 9, 2011

[android-developers] Re: Using StaticLayout with a canvas to draw text.

The translate() method is, indeed, the easiest.

For instance,

canvas.save();
canvas.translate(25.0f, 15.0f);
layout.draw(canvas);
canvas.restore();


--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment