user768004
user768004

Reputation:

I cannot center the text of a userdefined Button

I created a Button and I set its UIID to boutonPpal. I set the bgAlign attribute to ALIGN_CENTER in the resource Editor but the text of the Button is not centered at runtime !

So how to make the text centered ?

Upvotes: 0

Views: 173

Answers (1)

Shai Almog
Shai Almog

Reputation: 52760

bgAlign aligns the background image of a component. Use the "Align" tab if using the latest LWUIT. If you are using 1.4 you need to actually invoke setAlign() on the component since in 1.4 alignment was not a part of the theme.

Upvotes: 1

Related Questions