virtualview_tools icon indicating copy to clipboard operation
virtualview_tools copied to clipboard

textStyle=“normal”报错

Open truecs opened this issue 4 years ago • 0 comments

官方文档描述, NText的textStyle属性可以赋值enum(normal/bold/italic/strike/underline), VText的textStyle属性可以赋值enum(norma/bold/italic/strike)。 在使用textStyle=“normal”时报错:VALUE ERROR:key=textStyle value=normal。 需要修改TextBaseParser和TextStyleValueParser,在其中添加对normal的判断: if (!TextUtils.equals("normal", str)) { Log.e(TAG, "invalidate value:" + str); ret = false; break; }

truecs avatar May 08 '20 02:05 truecs