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

Text size issue between platforms #42

Open
thecybo opened this issue Jul 6, 2017 · 0 comments
Open

Text size issue between platforms #42

thecybo opened this issue Jul 6, 2017 · 0 comments

Comments

@thecybo
Copy link

thecybo commented Jul 6, 2017

The digitTextSize attribute sets the digit text size to a much bigger value than the one in the input on Android 7.
The cause might be digitView.setTextSize(digitTextSize); in the addViews() method, as digitTextSize is a dimension in PX and not passing the unit to setTextSize defaults it to COMPLEX_UNIT_SP. So the size defined in SP is converted to PX, then the resulting "n PX" is treated as "n SP".
For some odd reason on Android 7.1.2 it defaults to something else so the text is very small.

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