Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

textStyle=“normal”报错 #16

Open
truecs opened this issue May 8, 2020 · 0 comments
Open

textStyle=“normal”报错 #16

truecs opened this issue May 8, 2020 · 0 comments

Comments

@truecs
Copy link

truecs commented May 8, 2020

官方文档描述,
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;
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant