Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

动态绘制文本,靠左无效,而且无法省略号 #429

Open
peter100u opened this issue May 27, 2022 · 0 comments
Open

动态绘制文本,靠左无效,而且无法省略号 #429

peter100u opened this issue May 27, 2022 · 0 comments

Comments

@peter100u
Copy link

TextPaint textPaint = new TextPaint();
textPaint.setColor(Color.WHITE);
textPaint.setTextSize(18);
textPaint.setTextAlign(Paint.Align.LEFT);
entity.setDynamicText(content, textPaint, "text");

            textPaint.setTextAlign(Paint.Align.LEFT); 这句无效,看到源码,是因为作者绘制x的坐标是中间开始,这是不对的

image

@peter100u peter100u changed the title 动态绘制文本,靠左无效 动态绘制文本,靠左无效,而且无法省略号 May 27, 2022
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