Code example for SeekBar

Methods: getTag

0
	private class SeekBarChangeListener implements OnSeekBarChangeListener {
 
		@Override 
		public void onProgressChanged(SeekBar seekBar, int progress,
				boolean fromUser) {
			byte portByte = (Byte) seekBar.getTag();
			sendCommand(digitalPort, portByte, outputPWM, (byte)progress);
			Log.i(TAG, "message send: digital pwm pin " + portByte + " " + progress);
		} 
 
		@Override 
		public void onStartTrackingTouch(SeekBar seekBar) {
		} 
 
		@Override 
		public void onStopTrackingTouch(SeekBar seekBar) {
		} 
	} 
}