I am trying to implement a TabLayout in Xamarin Android.
However when I try to construct a TabLayout I get the following exception
Java.Lang.IllegalArgumentException: You need to use a Theme.AppCompat them (or descendant) with the design library.
I have tried this with the TabLayout in an .axml layout but when I inflate it I get the exception.
I also tried taking it out of the .axml layout file and programmatically adding it to the view after I inflated. In this case I get the exception directly after calling
var tabLayout = new TabLayout(Application.Context);
I have also set the theme to Theme.AppCompat in the AndroidManifest file
I have spent two days on this and need some help, it would be useful if someone had a very simple working example they could share.
I am using Xamarin and MvvmCross.