Hello All,
I am kind of new to android development and CodenameOne, so this may be a stupid question. But how would one go about centering the text of a SpanLabel.
The scenario is that I am trying to create a custom Error dialog that has a varying length message and thus I would like a SpanLabel so that all text is viewable no matter what. But I would like to have the text center aligned instead of left justified like it is in the following pictures. Any help is greatly appreciated. Thanks.
![](https://lh4.googleusercontent.com/-mri0Y6Z7ToQ/U54i6KYpodI/AAAAAAAAAWY/4_bpX-QsZEI/s1600/Capture2.JPG)