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; }
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); }
public void RegisterExtraordinaireScrollBar(ScrollBarExtraordinaire scrollBar) { this.scrollBar = scrollBar; scrollBar.ScrollToIndexRequested += index => SmoothScrollTo (0, Height * index); }
public void RegisterExtraordinaireScrollBar(ScrollBarExtraordinaire scrollBar) { this.scrollBar = scrollBar; scrollBar.ScrollToIndexRequested += index => SmoothScrollTo(0, Height * index); }