Merge "Show underline when text show a link"
This commit is contained in:
committed by
Android (Google) Code Review
commit
abec4def72
@@ -74,7 +74,7 @@ public class LinkifyUtils {
|
|||||||
@Override
|
@Override
|
||||||
public void updateDrawState(TextPaint ds) {
|
public void updateDrawState(TextPaint ds) {
|
||||||
super.updateDrawState(ds);
|
super.updateDrawState(ds);
|
||||||
ds.setUnderlineText(false);
|
ds.setUnderlineText(true);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
spannableContent.setSpan(spannableLink, beginIndex, endIndex,
|
spannableContent.setSpan(spannableLink, beginIndex, endIndex,
|
||||||
|
@@ -50,7 +50,7 @@ public class AnnotationSpan extends URLSpan {
|
|||||||
@Override
|
@Override
|
||||||
public void updateDrawState(TextPaint ds) {
|
public void updateDrawState(TextPaint ds) {
|
||||||
super.updateDrawState(ds);
|
super.updateDrawState(ds);
|
||||||
ds.setUnderlineText(false);
|
ds.setUnderlineText(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static CharSequence linkify(CharSequence rawText, LinkInfo... linkInfos) {
|
public static CharSequence linkify(CharSequence rawText, LinkInfo... linkInfos) {
|
||||||
|
Reference in New Issue
Block a user