Code example for CompoundButton

Methods: getTag

0
	private OnCheckedChangeListener editNoteCheckedChangeListener = new OnCheckedChangeListener() {
 
		@Override 
		public void onCheckedChanged(CompoundButton buttonView, 
									 boolean isChecked) { 
			Integer number = (Integer) buttonView.getTag(); 
			if (isChecked) { 
				mNoteSelectedNumbers.add(number); 
			} else { 
				mNoteSelectedNumbers.remove(number); 
			} 
		} 
 
	}; 
 
	/** 
	 * Occurs when user presses "Clear" button. 
	 */ 
	private View.OnClickListener clearButtonListener = new View.OnClickListener() {
		@Override 
		public void onClick(View v) {