public void rearrangeChildren(int itemCount){
  ArrayList<View> views=getItemsInReadingOrder();
  mContent.arrangeChildren(views,Math.max(itemCount,views.size()));
  mItemsInvalidated=true;
}

public void rearrangeChildren ( int itemCount ) { ArrayList < View > views = getItemsInReadingOrder ( ) ; mContent . arrangeChildren ( views , Math . max ( itemCount , views . size ( ) ) ) ; mItemsInvalidated = true ; }
rearranges the children based on their rank .
