I have a problem when displaying html text on android.
Here my test
var textField1:TextField = new TextField ();
textField1.x = 0;
textField1.y = 0;
textField1.embedFonts = true;
textField1.selectable = false;
textField1.defaultTextFormat = Fonts.CHAT_WHITE_20;
textField1.autoSize = TextFieldAutoSize.LEFT;
textField1.htmlText = ""
+ "Red 1: <font color=\"#FF0000\">#FF0000</font>" + "\n"
+ "Red 2: <font color=\"#00FF0000\">#00FF0000</font>" + "\n"
+ "Red 3: <font color=\"red\">red</font>" + "\n"
+ "Red 4: <font color=\"0xFF0000\">0xFF0000</font>" + "\n"
+ "Green 1: <font color=\"#00FF00\">#00FF00</font>" + "\n"
+ "Green 2: <font color=\"#FF00FF00\">#FF00FF00</font>" + "\n"
+ "Green 3: <font color=\"green\">green</font>" + "\n"
+ "Green 4: <font color=\"0x00FF00\">0x00FF00</font>" + "\n"
+ "Blue 1: <font color=\"#0000FF\">#0000FF</font>" + "\n"
+ "Blue 2: <font color=\"#FF0000FF\">#FF0000FF</font>" + "\n"
+ "Blue 3: <font color=\"blue\">blue</font>" + "\n"
+ "Blue 4: <font color=\"0x0000FF\">0x0000FF</font>";
this.addChild (textField1);
var textField2:TextField = new TextField ();
textField2.x = 300;
textField2.y = 0;
textField2.width = 300;
textField2.embedFonts = true;
textField2.selectable = false;
textField2.defaultTextFormat = Fonts.DETAIL_WHITE_20;
textField2.autoSize = TextFieldAutoSize.LEFT;
textField2.wordWrap = true;
textField2.multiline = true;
textField2.text = textField1.htmlText;
this.addChild (textField2);
My haxelib
actuate: [1.8.1]
hxtools: [1.1.6]
lime-tools: [1.3.2]
lime: [0.9.6]
nme: [5.2.13]
openfl: [1.3.0]
Build IOS, Windows or Flash
Build Android (run on any Android devices)
Only Android, text color is wrong. I need solution for this problem!