Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

TabLayout Example

$
0
0

Hi,

I am new to Xamarin and I am trying to create a TabLayout in my application. I have used the code in the tutorials of TabLayout. I am working with Visual Studio 2012 Ultimate

The problem is that I receive a compilation error in Visual Studio in the line of code code TabHost.NewTabSpec( "collect" );. The error is:

Error   2   An object reference is required for the non-static field, method, or property 'Android.Widget.TabHost.AddTab(Android.Widget.TabHost.TabSpec)'

Well I have create my main activity and in the onCreate I have simply copied the code suggested in the tutorial.

Can you help me


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>