Code example for SeekBar

Methods: getTag

0
		stakeSelector.setMax(stakes.size() - 1);
		stakeSelector.setProgress(_stakePosition);
		stakeSelector.setOnSeekBarChangeListener(new OnSeekBarChangeListener() {
			public void onProgressChanged(final SeekBar seekBar, final int progress, final boolean fromUser) {
				_stakePosition = progress;
				final ViewHolder holder = (ViewHolder) seekBar.getTag();
				updateStakeText(holder.stakeText);
			} 
 
			public void onStartTrackingTouch(final SeekBar seekBar) {
			} 
 
			public void onStopTrackingTouch(final SeekBar seekBar) {
			} 
		}); 
		final ViewHolder holder = new ViewHolder();
		holder.stakeText = (TextView) view.findViewById(R.id.stake_text);
		stakeSelector.setTag(holder);
	} 
 
	private void prepareStakeText(final View view) {