예제 #1
0
        public override void OnViewCreated(View view, Bundle bundle)
        {
            var bookshelf = BookshelfManager.getBookshelf();

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

            layoutManager = new LinearLayoutManager(Activity);
            recyclerView.SetLayoutManager(layoutManager);

            var adapter = new BookshelfAdapter(bookshelf);
            recyclerView.SetAdapter(adapter);

            base.OnViewCreated (view, bundle);
        }
예제 #2
0
 protected void setupAdapter()
 {
     adapter = new BookshelfAdapter();
     recyclerView.SetAdapter(adapter);
 }