0

How to add 2nd foreground color for same text in lwuit?

    Label lable=new Label();
    lable.setText("This is a Lable");
    lable.getStyle().setFgColor(0xffffff);
gnat
  • 6,213
  • 108
  • 53
  • 73
Ravindu
  • 1
  • 4

1 Answers1

1

You can't set two colors or styles to a single label. You can place multiple labels in a Container that has either a flow layout or a BoxLayout X_AXIS layout to achieve that same effect.

bharath
  • 14,283
  • 16
  • 57
  • 95
Shai Almog
  • 51,749
  • 5
  • 35
  • 65