Philio / PinEntryView

A pin entry view widget for Android.
222 stars 83 forks source link

Text size issue between platforms #42

Open thecybo opened 7 years ago

thecybo commented 7 years ago

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.