On the PinEntryView builder digitTextSize gets its value from he method
array.getDimensionPixelSize, which returns an int that represents the
dimension in PIXELS.
After that on the addViews method this value is fed to the
TextView.setTextSize(float) method that expects a value in DENSITY
INDEPENDENT PIXELS. This causes the digits to look different on each
screen based on that screen's resolution (higher resolution will show
bigger numbers).
I fixed this issue by using TextView.setTextSize(int, float) instead
and setting the unit of the dimension to be PX instead of DP
On the PinEntryView builder digitTextSize gets its value from he method array.getDimensionPixelSize, which returns an int that represents the dimension in PIXELS. After that on the addViews method this value is fed to the TextView.setTextSize(float) method that expects a value in DENSITY INDEPENDENT PIXELS. This causes the digits to look different on each screen based on that screen's resolution (higher resolution will show bigger numbers). I fixed this issue by using TextView.setTextSize(int, float) instead and setting the unit of the dimension to be PX instead of DP