Ejemplo n.º 1
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.AllOrdersLayout);


            _mOrdersList  = new OrdersList();
            mRecyclerView = FindViewById <RecyclerView>(Resource.Id.recyclerView2);

            mLayoutManager = new LinearLayoutManager(this);

            mRecyclerView.SetLayoutManager(mLayoutManager);

            mAdapter            = new AllOrdersAdapter(_mOrdersList);
            mAdapter.ItemClick += OnItemClick;
            mRecyclerView.SetAdapter(mAdapter);
        }
Ejemplo n.º 2
0
 public AllOrdersAdapter(OrdersList ordersList)
 {
     _mOrdersList = ordersList;
 }
Ejemplo n.º 3
0
 void CreateNewAdapter()
 {
     _mOrdersList = new OrdersList();
     mAdapter     = new AllOrdersAdapter(_mOrdersList);
     mRecyclerView.SetAdapter(mAdapter);
 }