Ejemplo n.º 1
0
		public override View OnCreateView (LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
		{
			var view = inflater.Inflate (Resource.Layout.StatsLayout, container, false);
			statsList = view.FindViewById<SnapScrollView> (Resource.Id.statsList);
			scrollBar = view.FindViewById<ScrollBarExtraordinaire> (Resource.Id.scrollBar);

			statsList.OverScrollMode = OverScrollMode.Never;
			statsList.RegisterExtraordinaireScrollBar (scrollBar);

			return view;
		}
Ejemplo n.º 2
0
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            var view = inflater.Inflate(Resource.Layout.StatsLayout, container, false);

            statsList = view.FindViewById <SnapScrollView> (Resource.Id.statsList);
            scrollBar = view.FindViewById <ScrollBarExtraordinaire> (Resource.Id.scrollBar);

            statsList.OverScrollMode = OverScrollMode.Never;
            statsList.RegisterExtraordinaireScrollBar(scrollBar);

            return(view);
        }
Ejemplo n.º 3
0
 public void RegisterExtraordinaireScrollBar(ScrollBarExtraordinaire scrollBar)
 {
     this.scrollBar = scrollBar;
     scrollBar.ScrollToIndexRequested += index => SmoothScrollTo (0, Height * index);
 }
Ejemplo n.º 4
0
 public void RegisterExtraordinaireScrollBar(ScrollBarExtraordinaire scrollBar)
 {
     this.scrollBar = scrollBar;
     scrollBar.ScrollToIndexRequested += index => SmoothScrollTo(0, Height * index);
 }