Code example for CompoundButton

Methods: getTag, setChecked

0
		} 
 
		@Override 
		public void onCheckedChanged(CompoundButton buttonView,
				boolean isChecked) {
			int position = (Integer) buttonView.getTag();
			if (isChecked) {
				buttonView.setChecked(true);
			} else { 
				buttonView.setChecked(false);
			} 
			mDataSource.get(position).setEnabled(isChecked);
		} 
 
		@Override 
		public Object getItem(int arg0) {
			return null; 
		} 
 
		private class ViewHolder { 
			TextView text;