[mono-android] mono-android-9794
Asmaa Mohamed Roushdy
asmaa at victorylink.com
Mon Mar 14 03:00:06 EDT 2011
After installing new version mono-android-9794
I had error in my code
TabHost.TabSpec spec; // Resusable TabSpec for each tab
Intent intent; // Reusable Intent for each tab
// Create an Intent to launch an Activity for the tab (to be reused)
intent = new Intent(this, typeof(MyListView));
intent.AddFlags(ActivityFlags.NewTask);
// Initialize a TabSpec for each tab and add it to the TabHost
spec = TabHost.NewTabSpec("MyListView");
spec.SetIndicator("ListView",
Resources.GetDrawable(Resource.Drawable.ic_tab));
spec.SetContent(intent);
TabHost.AddTab(spec);
An object reference is required for the non-static field, method, or
property 'Android.Widget.TabHost.AddTab(Android.Widget.TabHost.TabSpec)'
An object reference is required for the non-static field, method, or
property 'Android.Widget.TabHost.NewTabSpec(string)'
Sincerely
Asmaa Mohamed Roushdy
Team Lead
<http://www.victoryfn.com/> Victory Finance
5 El Zohour st. 1st floor, Cairo 12311 Egypt
Phone: +2 02 37624480, Fax: +2 02 37624490
Mobile: +2 0144442156
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/mailman/private/monodroid/attachments/20110314/b9448afb/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 181 bytes
Desc: not available
Url : http://lists.ximian.com/mailman/private/monodroid/attachments/20110314/b9448afb/attachment.png
More information about the Monodroid
mailing list