public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
		{
			if (Dialog != null)
			{
				Dialog.Window.RequestFeature(WindowFeatures.NoTitle);
				Dialog.Window.SetBackgroundDrawableResource(Android.Resource.Color.Transparent);
			}

			View root = inflater.Inflate(Resource.Layout.fragment_quick_contact, container, false);
			_tabs = root.FindViewById<PagerSlidingTabStrip.PagerSlidingTabStrip>(Resource.Id.tabs);
			_pager = root.FindViewById<ViewPager>(Resource.Id.pager);
			_adapter = new ContactPagerAdapter(Activity);

			_pager.Adapter = _adapter;
			_tabs.SetViewPager(_pager);
			return root;
		}
Exemple #2
0
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            if (Dialog != null)
            {
                Dialog.Window.RequestFeature(WindowFeatures.NoTitle);
                Dialog.Window.SetBackgroundDrawableResource(Android.Resource.Color.Transparent);
            }

            View root = inflater.Inflate(Resource.Layout.fragment_quick_contact, container, false);

            _tabs    = root.FindViewById <PagerSlidingTabStrip.PagerSlidingTabStrip>(Resource.Id.tabs);
            _pager   = root.FindViewById <ViewPager>(Resource.Id.pager);
            _adapter = new ContactPagerAdapter(Activity);

            _pager.Adapter = _adapter;
            _tabs.SetViewPager(_pager);
            return(root);
        }