LayoutInflater factorys = LayoutInflater.from(当前类.this);
final View textEntryView = factorys.inflate(R.layout.你要获取的另一个XML, null);TextView y_type = (TextView) textEntryView.findViewById(R.id.控件ID);本文共 250 字,大约阅读时间需要 1 分钟。
LayoutInflater factorys = LayoutInflater.from(当前类.this);
final View textEntryView = factorys.inflate(R.layout.你要获取的另一个XML, null);TextView y_type = (TextView) textEntryView.findViewById(R.id.控件ID);转载于:https://www.cnblogs.com/new-comer/p/5304087.html