LayoutInflater factorys = LayoutInflater.from(当前类.this);final View textEntryView = factorys.inflate(R.layout.你要获取的另一个XML, null);TextView y_type = (TextView) textEntryView.findViewById(R.id.控件ID);