ShawnLin013 / NumberPicker

:slot_machine: The android library that provides a simple and customizable NumberPicker.
MIT License
1.07k stars 240 forks source link

number formatting in v2.4.8 #160

Closed alizarei95 closed 4 years ago

alizarei95 commented 4 years ago

Hi , when i set 4 digits number to NumberPicker it formats value by separating numbers like currency. I don't have this problem with v2.4.6. any idea?

ShawnLin013 commented 4 years ago

Hi , when i set 4 digits number to NumberPicker it formats value by separating numbers like currency. I don't have this problem with v2.4.6. any idea?

@alizarei95 Could you provide your code snippet?

alizarei95 commented 4 years ago
    // setup year number pickers
    npYear.setTypeface(ResourcesCompat.getFont(getContext(), R.font.iran_yekan_fa_num_bold));
    npYear.setMinValue(1300);
    npYear.setMaxValue(1398);
    npYear.setOnValueChangedListener(onValueChangeListener);

Screenshot_20200226-155409

ShawnLin013 commented 4 years ago

It's working correctly in v2.4.8. Have you tried using the latest version v2.4.9?

alizarei95 commented 4 years ago

Tested v2.4.9 and also have this problem. I don't have this problem in v2.4.6

ShawnLin013 commented 4 years ago

Have you tried testing on example project? I tested the above code snippet that you provided and it's working correctly.

alizarei95 commented 4 years ago

do you set custom typeface?

ShawnLin013 commented 4 years ago

This issue has been fixed at v2.4.10.