Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IllegalArgumentException: PrecomputedText's Parameters don't match the parameters of this TextView.Consider using setTextMetricsParams(precomputedText.getParams()) to override the settings of this TextView: PrecomputedText: #28

Open
wlpsunny opened this issue Jun 28, 2023 · 1 comment

Comments

@wlpsunny
Copy link

Caused by: java.lang.IllegalArgumentException: PrecomputedText's Parameters don't match the parameters of this TextView.Consider using setTextMetricsParams(precomputedText.getParams()) to override the settings of this TextView: PrecomputedText: {textSize=45.0, textScaleX=1.0, textSkewX=0.0, letterSpacing=0.0, textLocale=[zh_CN], typeface=android.graphics.Typeface@5cb73da, variationSettings=null, elegantTextHeight=false, textDir=android.text.TextDirectionHeuristics$TextDirectionHeuristicInternal@a4e222a, breakStrategy=0, hyphenationFrequency=0, lineBreakStyle=0, lineBreakWordStyle=0}TextView: {textSize=45.0, textScaleX=1.0, textSkewX=0.0, letterSpacing=0.0, textLocale=[zh_CN], typeface=android.graphics.Typeface@5cb73da, variationSettings=null, elegantTextHeight=false, textDir=android.text.TextDirectionHeuristics$TextDirectionHeuristicInternal@a4e222a, breakStrategy=0, hyphenationFrequency=0, lineBreakStyle=0, lineBreakWordStyle=0}
2.at android.widget.TextView.setText(TextView.java:6554)
3.at android.widget.TextView.setText(TextView.java:6472)
4.at com.sunhapper.x.spedit.view.SpXTextView.setText(SpXTextView.java:36)
5.at android.widget.TextView.setText(TextView.java:6424)

@wlpsunny
Copy link
Author

机型是 魅族20 和魅族20pro Android13

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

No branches or pull requests

1 participant