Closed - Setting NumberPicker default value
<p>I am making a number picker dialog having 2 number pickers, years and months. I want to show some default value in these 2 number picker, apart from 0, 0</p>

<p><a href="https://i.stack.imgur.com/i2Cie.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/i2Cie.jpg" alt="enter image description here"></a></p>

<p>Code::</p>

<pre><code>    final NumberPicker numberPickerYear = (NumberPicker) expDialog.findViewById(R.id.numberPickerYears);
    final NumberPicker numberPickerMonth = (NumberPicker) expDialog.findViewById(R.id.numberPickerMonths);

    numberPickerYear.setMaxValue(35);
    numberPickerYear.setMinValue(0);
    numberPickerYear.setWrapSelectorWheel(true);

    numberPickerMonth.setMaxValue(11);
    numberPickerMonth.setMinValue(0);
    numberPickerMonth.setWrapSelectorWheel(true);
</code></pre>