Skip to content Skip to sidebar Skip to footer

Showing Seekbar Progress On Touch The Seekbar Control

I have a seekbar control and whenever i seek the control the value is shown only after the seek is finished,i need to get the value as soon the control is touched. The code on onSt

Solution 1:

Try this , This may help you

seekBar.setOnSeekBarChangeListener(new OnSeekBarChangeListener() {       

@Override       
public void onStopTrackingTouch(SeekBar seekBar) {      
    // TODO Auto-generated method stub      
}       

@Override       
public void onStartTrackingTouch(SeekBar seekBar) {     
    // TODO Auto-generated method stub 
    textView.setText(progress + "/" + seekBar.getMax());     
}       

@Override       
public void onProgressChanged(SeekBar seekBar, int progress,boolean fromUser) {     


   textView.setText(progress + "/" + seekBar.getMax());

}       
});    

Post a Comment for "Showing Seekbar Progress On Touch The Seekbar Control"