@Override
 protected void onBindView(View view) {
   super.onBindView(view);
   SeekBar seekBar = (SeekBar) view.findViewById(R.id.seekbar);
   seekBar.setOnSeekBarChangeListener(this);
   seekBar.setMax(mMax);
   seekBar.setProgress(mProgress);
   seekBar.setEnabled(isEnabled());
 }
 void syncProgress(SeekBar seekBar) {
   int progress = seekBar.getProgress();
   if (progress != mProgress) {
     if (callChangeListener(progress)) {
       setProgress(progress, false);
     } else {
       seekBar.setProgress(mProgress);
     }
   }
 }
 @Override
 public void onStopTrackingTouch(SeekBar seekBar) {
   mTrackingTouch = false;
   if (seekBar.getProgress() != mProgress) {
     syncProgress(seekBar);
   }
 }