상속: RecyclerView.Adapter
예제 #1
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            SetContentView(Resource.Layout.list);

            var list = FindViewById<RecyclerView>(Resource.Id.venueList);
            var adapter = new PictureAdapter(this);
            adapter.Items = Config.Images;

            RecyclerView.LayoutManager layoutManagerDelegate = new LinearLayoutManager(this);
            list.SetLayoutManager(layoutManagerDelegate);
            list.SetAdapter(adapter);
        }
예제 #2
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            SetContentView(Resource.Layout.list);

            var list    = FindViewById <RecyclerView>(Resource.Id.venueList);
            var adapter = new PictureAdapter(this);

            adapter.Items = Config.Images;

            RecyclerView.LayoutManager layoutManagerDelegate = new LinearLayoutManager(this);
            list.SetLayoutManager(layoutManagerDelegate);
            list.SetAdapter(adapter);
        }