public PilotStatsListFragment(string title, PilotStatsAdapter stats, Activity parent)
     : base()
 {
     mTitle = title;
     mStats = stats;
     mParent = parent;
 }
        protected override void OnCreate(Bundle savedInstance)
        {
            base.OnCreate(savedInstance);
            SetContentView(R.Layouts.TopPilotsActivity_Layout);

            this.ActionBar.NavigationMode = ActionBar.NAVIGATION_MODE_TABS;
            this.ActionBar.SetDisplayHomeAsUpEnabled(true);

            confluxKillsAdapter = CreateTab("Conflux Kills");
            pilotKillsAdapter = CreateTab("Pilot Kills");
            deathsAdapter = CreateTab("Deaths");
            creditsAdapter = CreateTab("Credits");
            missionsAdapter = CreateTab("Missions Completed");
            dutyHoursAdapter = CreateTab("Duty Hours");
            experienceAdapter = CreateTab("Experience");

            var pilotStats = LastNonConfigurationInstance as PilotStats;
            if (pilotStats != null)
            {
                PopulatePilotStats(pilotStats);
                _savedInstance = pilotStats;
            }
            else
            {
                RefreshPilotStats();
            }
        }
        PilotStatsAdapter CreateTab(string title)
        {
            PilotStatsAdapter adapter = new PilotStatsAdapter(this);
            PilotStatsListFragment fragment = new PilotStatsListFragment(title, adapter, this);

            var tab = this.ActionBar.NewTab();
            tab.SetText(title);
            tab.SetTabListener(this);
            tab.SetTag(fragment);

            this.ActionBar.AddTab(tab);

            return adapter;
        }