Наследование: StaggeredGridLayoutManager
Пример #1
0
        private void BindCollection()
        {
			var layoutManager = new AutoFitStaggeredLayoutManager(180, StaggeredGridLayoutManager.Vertical, Context);
			GalleryRecyclerView.SetLayoutManager(layoutManager);
			var adapter = Vm.Images.GetRecyclerAdapter(BindViewHolder, Resource.Layout.Tmpl_GalleryThumbnail, ItemClicked);
            GalleryRecyclerView.SetAdapter(adapter);
            GalleryRecyclerView.ClearOnScrollListeners();
			var listener = new ScrollListener(Vm.Images);
            GalleryRecyclerView.AddOnScrollListener(listener);
        }
Пример #2
0
        private void BindCollection()
        {
            var layoutManager = new AutoFitStaggeredLayoutManager(180, StaggeredGridLayoutManager.Vertical, Context);

            GalleryRecyclerView.SetLayoutManager(layoutManager);
            var adapter = Vm.Images.GetRecyclerAdapter(BindViewHolder, Resource.Layout.Tmpl_GalleryThumbnail, ItemClicked);

            GalleryRecyclerView.SetAdapter(adapter);
            GalleryRecyclerView.ClearOnScrollListeners();
            var listener = new ScrollListener(Vm.Images);

            GalleryRecyclerView.AddOnScrollListener(listener);
        }