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

单位 bug #6

Open
artheru opened this issue Nov 25, 2015 · 3 comments
Open

单位 bug #6

artheru opened this issue Nov 25, 2015 · 3 comments

Comments

@artheru
Copy link

artheru commented Nov 25, 2015

问题在于以下两句:
mTagSize = a.getDimension(R.styleable.TagCloudView_tcvTextSize, DEFAULT_TEXT_SIZE);

tagView.setTextSize(TypedValue.COMPLEX_UNIT_SP, mTagSize);

mTagSize是pixel为单位的,和后一句的单位不匹配

@artheru artheru closed this as completed Nov 25, 2015
@artheru artheru reopened this Nov 25, 2015
@JollyJiang
Copy link

我也发现这个问题,你设置了文字大小后,就会发现,不同分辨率下的大小差非常大。比如:
app:tcvTextSize="12sp"

@kingideayou
Copy link
Owner

感谢反馈,这里确实有问题。我已经把 tcvTextSize 的单位改成 Integer ,我会尽早提交到 JCenter

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

4 participants
@JollyJiang @kingideayou @artheru and others