public SlidingTabScrollView(Context context, IAttributeSet attrs, int defaultStyle) : base(context, attrs, defaultStyle) { //disable scrollbar HorizontalScrollBarEnabled = false; //make sure the tab strips fill the view FillViewport = true; this.SetBackgroundColor(Android.Graphics.Color.Rgb(0xe5, 0xe5, 0xe5)); mTitleOffset = (int)(TITLE_OFFSET_DIPS * Resources.DisplayMetrics.Density); mTabStrip = new SlidingTabStrip(context); this.AddView(mTabStrip, LayoutParams.MatchParent, LayoutParams.MatchParent); }