Android Numberpicker default value not coming
@Renjith
Thank for the link, but I think you should link the code or even paste it here. https://code.google.com/p/android/issues/detail?id=35482#c9
Field f = NumberPicker.class.getDeclaredField("mInputText");
f.setAccessible(true);
EditText inputText = f.get(mPicker);
inputText.setFilters(new InputFilter[0]);
The issue seems to a bug in NumberPicker widget.
And I have solved it using method 2 described here.
I found a solution for this bug in NumberPicker that works in APIs 18-26 without using reflection and without using setDisplayedValues()
here.