Code example for NumberPicker

Methods: setOnValueChangedListener

	// Function that is called when the number of 
	// players in the prelims changes. This function 
	// updates the new max players for the playoffs. 
	private void setOnValueChangeListener(NumberPicker np)
		np.setOnValueChangedListener(new OnValueChangeListener()
			public void onValueChange(NumberPicker picker, int oldVal, int newVal)
	// Function to load the ListViews with the possible 
	// draft and playoff types. 
	private void setPossibleDraftTypes() 
		_draftTypesList.setAdapter(new CustomExpandableListAdapter
Connect your IDE to all the code out there  Get Codota for Java