Possible To Implement TabHost without TabActivity base class?

CodeMonkeyCodeMonkey ✭✭✭GBMember ✭✭✭
edited October 2012 in Xamarin.Android

I need to add a set of Tabs to my activity but the examples provided only show how to implement this by setting the base class to TabActivty. Is it possible to use tabs without setting this base class?

Adrian

Posts

  • CodeMonkeyCodeMonkey ✭✭✭ GBMember ✭✭✭

    Got this sorted, for anyone wondering use this code:

     LocalActivityManager mLocalActivityManager = new LocalActivityManager(this, false);
     mLocalActivityManager.DispatchCreate(bundle);
     TabHost host = (TabHost)FindViewById(Resource.Id.treatTabHost);
     host.Setup(mLocalActivityManager);
    
  • GrantKimseyGrantKimsey USMember

    +1 thank you for sharing your solution.

Sign In or Register to comment.