Exemple #1
0
        public void RemoveAndRecycleViewAt(int index, FlexibleViewRecycler recycler)
        {
            if (null == recycler)
            {
                return;
            }
            FlexibleViewViewHolder v = mChildHelper.GetChildAt(index);

            mChildHelper.RemoveViewAt(index);
            recycler.RecycleView(v);
        }
Exemple #2
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();
        }
Exemple #3
0
 private void RecycleChildrenInt(FlexibleViewRecycler recycler)
 {
     if (null == recycler)
     {
         return;
     }
     foreach (FlexibleViewViewHolder holder in mPendingRecycleViews)
     {
         holder.PendingRecycle = false;
         recycler.RecycleView(holder);
         mChildHelper.RemoveView(holder);
     }
     mPendingRecycleViews.Clear();
 }