Поддержка html тегов
This commit is contained in:
parent
2bdae6bdc2
commit
a7aa215ae6
@ -406,6 +406,10 @@ public final class ViewActivity extends Activity implements TouchGesture.OnTouch
|
|||||||
|
|
||||||
private Spannable formatString(String text) {
|
private Spannable formatString(String text) {
|
||||||
String edited = text.replaceAll("\\{w.*?\\}", "");
|
String edited = text.replaceAll("\\{w.*?\\}", "");
|
||||||
|
if (edited.contains("{html}")) {
|
||||||
|
edited = edited.replaceAll("\\{html\\}", "");
|
||||||
|
return new SpannableString(Html.fromHtml(edited));
|
||||||
|
}
|
||||||
final String[] codes = {"b","i","s","u","big","small"};
|
final String[] codes = {"b","i","s","u","big","small"};
|
||||||
boolean html = false;
|
boolean html = false;
|
||||||
for (int i = 0; i < codes.length; i++) {
|
for (int i = 0; i < codes.length; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user