public SlidingTabScrollView(Context context, IAttributeSet attrs, int defaultStyle) : base(context, attrs, defaultStyle) { //Disable the scroll bar HorizontalScrollBarEnabled = false; //Make sure the tab strips fill the view FillViewport = true; this.SetBackgroundColor(Android.Graphics.Color.Rgb(0x19, 0x76, 0xd2)); //blueish color mTitleOffset = (int)(TITLE_OFFSET_DIPS * Resources.DisplayMetrics.Density); mTabStrip = new SlidingTabStrip(context); this.AddView(mTabStrip, LayoutParams.MatchParent, LayoutParams.MatchParent); }
public SlidingTabScrollView(Context context, IAttributeSet attrs, int defaultStyle) : base(context, attrs, defaultStyle) { //Disable the scroll bar HorizontalScrollBarEnabled = false; //Make sure the tab strips fill the view FillViewport = true; this.SetBackgroundColor(Android.Graphics.Color.Rgb(0x19, 0x76, 0xd2)); //blueish color mTitleOffset = (int)(TITLE_OFFSET_DIPS * Resources.DisplayMetrics.Density); mTabStrip = new SlidingTabStrip(context); this.AddView(mTabStrip, LayoutParams.MatchParent, LayoutParams.MatchParent); }