How to center text in lwuit-graphics with drawString
How do you center text in lwuit-graphics with drawString(...) ? In "javax.microedition.lcdui.Graphics" you use Graphics.HCENTER, but how do you this in lwuit.graphics?
solved it with the following x-value: dimension.getWidth() / 2 - font.stringWidth(text)
|All times are GMT +1. The time now is 05:10 AM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.