private void reverseChildren(){
  List<View> children=new ArrayList<View>();
  for (int i=getChildCount() - 1; i >= 0; i--) {
    children.add(getChildAt(i));
  }
  for (  View v : children) {
    bringChildToFront(v);
  }
}

private void reverseChildren ( ) { List < View > children = new ArrayList < View > ( ) ; for ( int i = getChildCount ( ) - 1 ; i >= 0 ; i -- ) { children . add ( getChildAt ( i ) ) ; } for ( View v : children ) { bringChildToFront ( v ) ; } }
reverse the ordering of the children in this layout . note : bringchildtofront produced a non - deterministic ordering .
