Code example for CompoundButton

Methods: getTag

0
	private class HighLowChangeListener implements OnCheckedChangeListener {
 
		@Override 
		public void onCheckedChanged(CompoundButton buttonView,
				boolean isChecked) {
			byte portByte = (Byte) buttonView.getTag();
			if (isChecked) {
				sendCommand(digitalPort, portByte, outputHighLow, high);
				Log.i(TAG, "message send: digital pin " + portByte + " HIGH");
			} else { 
				sendCommand(digitalPort, portByte, outputHighLow, low);
				Log.i(TAG, "message send: digital pin " + portByte + " LOW");
			} 
		} 
	} 
 
	private class SeekBarChangeListener implements OnSeekBarChangeListener {
 
		@Override 
		public void onProgressChanged(SeekBar seekBar, int progress,
				boolean fromUser) {