Code example for NumberPicker

Methods: setDisplayedValuessetMaxValuesetMinValuesetValue

0
		if (mMHzPicker != null) {
			mMHzPicker.setMinValue(mMin / 1000);
			mMHzPicker.setMaxValue(mMax / 1000);
		} 
		if (mKHzPicker != null) {
			mKHzPicker.setDisplayedValues(get50KHzStrings());
			mKHzPicker.setMinValue(1);
			mKHzPicker.setMaxValue(khzNumSteps);
			mKHzPicker.setDisplayedValues(khzStrings);
		} 
	} 
 
	private void updateSpinners() { 
		int khzNumSteps = getKHzCount(mStep);
		updateSpinnerRange(); 
		mMhz = (int) (mFrequency / 1000);
		mKhz = getCurrentKHz(mFrequency, mMin, mStep);
		if ((mMin / 1000 <= mMhz) && (mMax / 1000 >= mMhz)) {
			mMHzPicker.setValue(mMhz);
		} 
		if (mKhz <= khzNumSteps) {
			mKHzPicker.setValue(mKhz);
		} 
	} 
 
	private void validateFrequencyRange() { 
		boolean bUpdateSpinner = false;
Experience pair programming with AI  Get Codota for Java