Code example for SeekBar

Methods: setOnSeekBarChangeListener

0
      timeoutText.setText(timeout + "");
    } 
  } 
 
  private void initializeListeners() { 
    this.seekBar.setOnSeekBarChangeListener(new SeekbarChangedListener());
    this.scaleSpinner.setOnItemSelectedListener(new ScaleSelectedListener());
  } 
 
  private class ScaleSelectedListener implements AdapterView.OnItemSelectedListener {
    @Override 
    public void onItemSelected(AdapterView<?> arg0, View arg1, int arg2, long selected) {
      if (selected == 0) {
        seekBar.setMax(60);
      } else { 
        seekBar.setMax(24);
      } 
    } 
 
    @Override 
    public void onNothingSelected(AdapterView<?> arg0) {