Maybe you can try canvas.translate() before draw.

On Feb 4, 2:05 pm, julz <[email protected]> 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, getTextPaint(), 140,
> android.text.Layout.Alignment.ALIGN_CENTER,(float)1.0, (float)0.0,
> true);
> layout.draw(canvas);
>
> Thanks for your help.
> Julz

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

Reply via email to