Hex problem with Html code
Hello, I have a string with html code embedded which is supposed to be a font color. When I use the hex config it converts to html and the color doesn't reproduce.
Original string:
<string name="status_bar_network_flow_exceed_content">Hoje: %1$s | Dados excedidos: <font color=%2$s>%3$s</font></string>
String after hex
<string name="status_bar_network_flow_exceed_content">Hoje: %1$s | Dados excedidos: <font color="%2$s">%3$s</font></string>
That variable is supposed to be the red color (#ff0000) and after hex the color doesn't appear. I decompile both apks to see strings.xml with apktool 2.3.1
Can you check if anything is wrong or I should use another content in string? Thank you...
Hi,
The problem is not in transforming < to < or > to >, the problem and the main issue is that jbart do all the stuff in the right way, but only for strings without parameters:
<string name="status_bar_network_flow_exceed_content">Hoje: %1$s | Dados excedidos: <font color="red">String to be red</font></string>
In this case string "String to be red" will be red, because it's a raw string (not the string format argument, such as %3$s).
I need more time to research this stuff in aapt/aapt2 source code.
Hello, Alright. Thank you