Code example for SeekBar

Methods: getProgress, getId

0
	private OnSeekBarChangeListener onChanged_Listener = new OnSeekBarChangeListener()
	{ 
		@Override 
		public void onProgressChanged(SeekBar seekBar, int progress, boolean fromTouch) 
		{ 
			int id = seekBar.getId(); 
			float index = seekBar.getProgress(); 
			 
			switch (id) 
			{ 
				case 201: 
				{ 
					total.setText(Currency.format(index / 100)); 
					 
					break; 
				} 
				case 202: 
				{ 
					tipRate.setText(Percentage.format(index / 1000)); 
					 
					break;