private void parseBindElements(XmlReader.Element e,ItemElement ie,String referVariable){
  final Array<XmlReader.Element> binds=e.getChildrenByName(XmlElementNames.BIND);
  if (binds == null || binds.size == 0)   return;
  BindElement be;
  XmlReader.Element bindEle;
  List<PropertyElement> props;
  for (int i=0, size=binds.size; i < size; i++) {
    be=new BindElement(XmlElementNames.BIND);
    bindEle=binds.get(i);
    String id=bindEle.getAttribute(XmlKeys.ID,null);
    if (!TextUtils.isEmpty(id)) {
      be.setId(id);
    }
    String refer=bindEle.getAttribute(XmlKeys.REFER_VARIABLE,null);
    if (!TextUtils.isEmpty(refer)) {
      be.setReferVariable(refer);
    }
    refer=DataBindUtil.mergeReferVariable(referVariable,refer);
    props=parsePropertyElements(bindEle,refer,id,true);
    if (props != null && props.size() > 0) {
      be.setPropertyElements(props);
    }
    parseImageProperty(be,bindEle,refer,id);
    ie.addBindElement(be);
  }
}

private void parseBindElements ( XmlReader . Element e , ItemElement ie , String referVariable ) { final Array < XmlReader . Element > binds = e . getChildrenByName ( XmlElementNames . BIND ) ; if ( binds == null || binds . size == 0 ) return ; BindElement be ; XmlReader . Element bindEle ; List < PropertyElement > props ; for ( int i = 0 , size = binds . size ; i < size ; i ++ ) { be = new BindElement ( XmlElementNames . BIND ) ; bindEle = binds . get ( i ) ; String id = bindEle . getAttribute ( XmlKeys . ID , null ) ; if ( ! TextUtils . isEmpty ( id ) ) { be . setId ( id ) ; } String refer = bindEle . getAttribute ( XmlKeys . REFER_VARIABLE , null ) ; if ( ! TextUtils . isEmpty ( refer ) ) { be . setReferVariable ( refer ) ; } refer = DataBindUtil . mergeReferVariable ( referVariable , refer ) ; props = parsePropertyElements ( bindEle , refer , id , true ) ; if ( props != null && props . size ( ) > 0 ) { be . setPropertyElements ( props ) ; } parseImageProperty ( be , bindEle , refer , id ) ; ie . addBindElement ( be ) ; } }
parse bind element and add it to the target itemelement
