解决方案 »

  1.   

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

  2.   


    这是网上的方法 请问我引用以后可以对R.layout.你要获取的另一个XML 这个xml进行操作么 改变里面的控制值等内容
      

  3.   

     TextView y_type = (TextView) textEntryView.findViewById(R.id.控件ID);
    都获取到控件了,你给y_type赋值,看下效果不就知道了
      

  4.   

    LayoutInflater.from(this).inflate(resource, root, attachToRoot);
      

  5.   


     是引用另一个.xml  谢谢