I'm currently having a issue with the SeekBar class in MonoDroid.
Currently I have extended it like this:
public class TTSeekBar : SeekBar, ITTComponent
{
public TTSeekBar(Context context): base(context)
{
}
private int _min = 0;
public int Min { get { return _min; } set { _min = value;} }
public override int Progress
{
get
{
return base.Progress + _min;
}
set
{
base.Progress = value;
}
}
public override int Max
{
get
{
return base.Max + _min;
}
set
{
base.Max = value + _min;
}
}
public object GetInputData()
{
return (this.Progress + _min).ToString();
}
}
But whenever I try to create a object using TTSeekBar _seekBar = new TTSeekBar(this);
(where this
is a Activity) I get a Sytem.NotSupportedException
thrown at the constructor with the message
Unable to activate instance of type TTApp.TTSeekBar from native handle 44fdad20
Extending other components of the Android.Widget
namespace like this seems to work just fine, so I'm wondering why this one doens't work.