Esempio n. 1
0
        private FragmentTransaction OnTabUnselected(object content)
        {
#if !API8
            var fragment = content as Fragment;
            if (fragment != null)
            {
                var fragmentManager = _tabHost.GetFragmentManager();
                if (fragmentManager == null)
                {
                    return(null);
                }
                return(fragmentManager.BeginTransaction().Detach(fragment));
            }
#endif
            var view = content as View;
            if (view != null)
            {
                _tabHost.TabContentView.RemoveView(view);
            }
            return(null);
        }