public MyGridViewAdapter(Context context, MySimpleItemLoader mySimpleItemLoader) { _context = context; _mySimpleItemLoader = mySimpleItemLoader; requestOptions = new RequestOptions(); requestOptions.Placeholder(Resource.Drawable.Triangles); requestOptions.Error(Resource.Drawable.pumafull); }
private void SetupUiElements() { _mySimpleItemLoader = new MySimpleItemLoader(); _mySimpleItemLoader.LoadMoreItems(ItemsPerPage); _gridView = FindViewById <GridView>(Resource.Id.gridView); _gridviewAdapter = new MyGridViewAdapter(this, _mySimpleItemLoader); _gridView.Adapter = _gridviewAdapter; _gridView.Scroll += KeepScrollingInfinitely; }