小弟最近在写一个android小程序,在用到include的时候遇到这样一个问题:怎么能够能到指定id中的include中的控件比如:
 <include 
         layout="@layout/formitem"
         android:layout_height="wrap_content"
         android:layout_width="wrap_content"
         android:layout_below="@+id/totalmoneytext"
         android:id="@+id/form1"
         />
     <include 
         layout="@layout/formitem"
         android:layout_height="wrap_content"
         android:layout_width="wrap_content"
         android:layout_below="@+id/form1"
         android:id="@+id/form2"
         />
因为我在一个布局文件中引入了多个相同的另外一个布局文件,并且为每一个引入的布局设定了id,那么我怎么能够实现获取上面id为form1的include中的控件,并且在改变控件内容时候,保证id为form2的include中的控件内容、属性不变(注:include引入的是同一个布局文件)
小弟迫切需要帮忙,希望各位牛人指点迷津,谢谢了。androidinclude布局layout