@Override public void addChild(WXComponent child,int index){
  if (child == null || index < -1) {
    return;
  }
  if (child instanceof WXBaseRefresh) {
    if (!checkRefreshOrLoading(child)) {
      mRefreshs.add(child);
    }
    return;
  }
  if (mChildren == null) {
    mChildren=new ArrayList<>();
  }
  int count=mChildren.size();
  index=index >= count ? -1 : index;
  if (index == -1) {
    mChildren.add(child);
  }
 else {
    mChildren.add(index,child);
  }
}

@ Override public void addChild ( WXComponent child , int index ) { if ( child == null || index < - 1 ) { return ; } if ( child instanceof WXBaseRefresh ) { if ( ! checkRefreshOrLoading ( child ) ) { mRefreshs . add ( child ) ; } return ; } if ( mChildren == null ) { mChildren = new ArrayList < > ( ) ; } int count = mChildren . size ( ) ; index = index >= count ? - 1 : index ; if ( index == - 1 ) { mChildren . add ( child ) ; } else { mChildren . add ( index , child ) ; } }
intercept refresh view and loading view
