How can I implement IOnTabChangeListener?

I have a Tab where the setcontent references views not activities.

I have added the interface in the class declaration like this:

public class MainActivity2 : TabActivity,
Android.Widget.TabHost.IOnTabChangeListener

set the following:

TabHost.SetOnTabChangedListener(this);

and then attempted to override the OnTabChanged method like this:

                protected override void OnTabChanged()
                {
                        
                }

I get an error stating:

MainActivity2 does not implement interface member
'Android.Widget.TabHost.IOnTabChangeListener.OnTabChanged(string)'.
'MainActivity2.OnTabChanged(string)' cannot implement an interface member
because it is not public.

I am missing something? Any help would be much appreciated.

--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/Implementing-TabChangeListener-tp5131214p5131214.html
Sent from the Mono for Android mailing list archive at Nabble.com.
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

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

Reply via email to