Exemple #1
0
            public void ScrapViews(FlexibleViewRecycler recycler)
            {
                recycler.Clear();
                foreach (FlexibleViewViewHolder itemView in mViewList)
                {
                    recycler.ScrapView(itemView);
                }

                mViewList.Clear();
            }
Exemple #2
0
        public void ScrapAttachedViews(FlexibleViewRecycler recycler)
        {
            if (null == mChildHelper || null == recycler)
            {
                return;
            }

            recycler.Clear();

            mChildHelper.ScrapViews(recycler);
        }
Exemple #3
0
        private void RemoveAndRecycleScrapInt()
        {
            int scrapCount = mRecycler.GetScrapCount();

            for (int i = 0; i < scrapCount; i++)
            {
                FlexibleViewViewHolder scrap = mRecycler.GetScrapViewAt(i);
                mChildHelper.RemoveView(scrap);
                mRecycler.RecycleView(scrap);
            }
            mRecycler.Clear();
        }