コード例 #1
0
        private void setAdapter()
        {
            System.Diagnostics.Debug.WriteLine("    DocumentsFragment.setAdapter " + this.DocumentsList.Count());
            mAdapter = new DocumentListAdapter(this.DocumentsList);

            mAdapter.ItemClick += OnItemClick;

            mRecyclerView.SetAdapter(mAdapter);
            mAdapter.NotifyDataSetChanged();

            if (mAdapter.ItemCount > 0)
            {
                mRecyclerView.SmoothScrollToPosition(0);
            }
            mRecyclerView.ForceLayout();
        }