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(0xE5, 0xE5, 0xE5)); //Gris 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) { //Désactive la bar de défilement HorizontalScrollBarEnabled = false; //On veut que notre bande d'onglet remplisse entièrement notre page FillViewport = true; this.SetBackgroundColor(Android.Graphics.Color.Rgb(0, 0, 0)); //Vert mTitleOffset = (int)(TITLE_OFFSET_DIPS * Resources.DisplayMetrics.Density); mTabStrip = new SlidingTabStrip(context); this.AddView(mTabStrip, LayoutParams.MatchParent, LayoutParams.MatchParent); }