예제 #1
0
 public MyGridViewAdapter(Context context, MySimpleItemLoader mySimpleItemLoader)
 {
     _context            = context;
     _mySimpleItemLoader = mySimpleItemLoader;
     requestOptions      = new RequestOptions();
     requestOptions.Placeholder(Resource.Drawable.Triangles);
     requestOptions.Error(Resource.Drawable.pumafull);
 }
예제 #2
0
        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;
        }