How do I have to use the interface? Define a new class, and implement the
interface?

This way it doesn't work:

public class CustomSeekBarChangeListener : Activity,
SeekBar.IOnSeekBarChangeListener 
 { 
  
  public CustomSeekBarChangeListener () 
  { 
  } 
   
  public void OnProgressChanged (SeekBar seekBar, int progress, bool
fromUser) 
  { 
   if (fromUser) FindViewById<EditText>(Resource.Id.et_orders).Text =
progress.ToString(); 
  }
 
  public void OnStartTrackingTouch (SeekBar seekBar) 
  { 
  } 
 
  public void OnStopTrackingTouch (SeekBar seekBar) 
  { 
  } 
   
  public IntPtr Handle { 
   get { 
    return new IntPtr(); 
   } 
  } 
 }

FindViewById<SeekBar>(Resource.Id.sb_orders).SetOnSeekBarChangeListener(new
CustomSeekBarChangeListener());

--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/How-to-do-OnSeekBarChangeListener-tp4813504p4815899.html
Sent from the Mono for Android mailing list archive at Nabble.com.
_______________________________________________
Monodroid mailing list
[email protected]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to