Exemple #1
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.Main);

            var recyclerView = FindViewById <RecyclerView>(Resource.Id.recyclerview);

            ObservableCollection <string> items = new ObservableCollection <string>();
            Random r = new Random();

            for (int i = 0; i < SIZE; i++)
            {
                items.Add(((char)('A' + r.Next('Z' - 'A'))) + " " + i.ToString());
            }
            items = new ObservableCollection <string>(items.OrderBy(a => a));

            recyclerView.SetAdapter(new LargeAdapter(items));
            recyclerView.SetLayoutManager(new LinearLayoutManager(this, LinearLayoutManager.Vertical, false));
            FastScroller fastScroller = FindViewById <FastScroller>(Resource.Id.fastscroller);

            fastScroller.SetRecyclerView(recyclerView);
        }
 public MyScrollListener(FastScroller scroller)
 {
     this.scroll = scroller;
 }
Exemple #3
0
 public HandleAnimationEndListener(FastScroller scroller)
 {
     this.scroll = scroller;
 }
Exemple #4
0
 public RecyclerScrollListener(FastScroller scroller)
 {
     this.scroll = scroller;
 }
Exemple #5
0
 public MyScrollListener(FastScroller scroller)
 {
     this.scroll = scroller;
 }