private void PopulateTabStrip()
        {
            PagerAdapter     adapter          = mViewPager.Adapter;
            IOnClickListener tabClickListener = new TabClickListener(this);

            for (int i = 0; i < adapter.Count; i++)
            {
                View     tabView      = null;
                TextView tabTitleView = null;

                if (mTabViewLayoutId != 0)
                {
                    tabView      = LayoutInflater.From(Context).Inflate(mTabViewLayoutId, mTabStrip, false);
                    tabTitleView = tabView.FindViewById <TextView>(mTabViewTextViewId);
                }

                if (tabView == null)
                {
                    tabView = CreateDefaultTabView(Context);
                }

                if (tabTitleView == null && tabView is TextView)
                {
                    tabTitleView = (TextView)tabView;
                }

                tabTitleView.Text = adapter.GetPageTitle(i);
                tabView.SetOnClickListener(tabClickListener);

                mTabTitleViews.Add(i, tabTitleView);
                mTabStrip.AddView(tabView);
            }
        }
        private void PopulateTabStrip()
        {
            PagerAdapter adapter = mViewPager.Adapter;
            IOnClickListener tabClickListener = new TabClickListener(this);

            for (int i = 0; i < adapter.Count; i++)
            {
                View tabView = null;
                TextView tabTitleView = null;

                if (mTabViewLayoutId != 0)
                {
                    tabView = LayoutInflater.From(Context).Inflate(mTabViewLayoutId, mTabStrip, false);
                    tabTitleView = tabView.FindViewById<TextView>(mTabViewTextViewId);
                }

                if (tabView == null)
                {
                    tabView = CreateDefaultTabView(Context);
                }

                if (tabTitleView == null && tabView is TextView)
                {
                    tabTitleView = (TextView)tabView;
                }

                tabTitleView.Text = adapter.GetPageTitle(i);
                tabView.SetOnClickListener(tabClickListener);

                mTabTitleViews.Add(i, tabTitleView);
                mTabStrip.AddView(tabView);
            }
        }