Skip to content

Text size issue between platforms #42

@thecybo

Description

@thecybo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions