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

2011-07-09 Thread lilbyrdie
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] Re: Using StaticLayout with a canvas to draw text.

2010-02-05 Thread NoraBora
Maybe you can try canvas.translate() before draw. On Feb 4, 2:05 pm, julz jmuens...@gmail.com wrote: Hi, I have figured out the static layout this far, but I have no idea how to make it display my text anywhere else but in the top left corner. StaticLayout layout = new StaticLayout(text,