From 7ed87d6d66617c631e77d05dc273d2c424084d20 Mon Sep 17 00:00:00 2001 From: longerian Date: Fri, 30 Mar 2018 14:32:52 +0800 Subject: [PATCH] fix #48, implement underline for NText --- .../tmall/wireless/vaf/virtualview/view/text/NativeText.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/virtualview/src/main/java/com/tmall/wireless/vaf/virtualview/view/text/NativeText.java b/virtualview/src/main/java/com/tmall/wireless/vaf/virtualview/view/text/NativeText.java index 5058082..54cae6a 100644 --- a/virtualview/src/main/java/com/tmall/wireless/vaf/virtualview/view/text/NativeText.java +++ b/virtualview/src/main/java/com/tmall/wireless/vaf/virtualview/view/text/NativeText.java @@ -146,6 +146,9 @@ public void onParseValueFinished() { if (0 != (mTextStyle & TextBaseCommon.STRIKE)) { flag |= Paint.STRIKE_THRU_TEXT_FLAG; } + if (0 != (mTextStyle & TextBaseCommon.UNDERLINE)) { + flag |= Paint.UNDERLINE_TEXT_FLAG; + } mNative.setPaintFlags(flag); if (0 != (mTextStyle & TextBaseCommon.ITALIC)) {