Fixed
Status Update
Comments
di...@google.com <di...@google.com> #2
Thank you for your feedback. We assure you that we are doing our best to address the issue reported, however our product team has shifted work priority that doesn't include this issue. For now, we will be closing the issue as won't fix obsolete. If this issue currently still exists, we request that you log a new issue along with latest bug report here https://goo.gl/TbMiIO .
Description
the preview looks wrong
- letters overlap each other
- underline is not shown
package test.test;
import android.annotation.TargetApi;
import android.content.Context;
import android.support.annotation.Nullable;
import android.text.Html;
import android.util.AttributeSet;
import android.widget.TextView;
public class HTMLView extends TextView {
public HTMLView(Context context) {
super(context);
}
public HTMLView(Context context, @Nullable AttributeSet attrs) {
super(context, attrs);
}
public HTMLView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr);
}
@TargetApi(21)
public HTMLView(Context context, @Nullable AttributeSet attrs, int defStyleAttr, int defStyleRes) {
super(context, attrs, defStyleAttr, defStyleRes);
}
@Override
protected void onFinishInflate() {
super.onFinishInflate();
setText(Html.fromHtml("text<u>underline</u>text<font color=\"red\">red</font>text"));
}
}