2011-11-14 61 views

回答

1

尝试......

在一个XML文件中定义你的布局。 ex one.xml

使用下面的代码,其中有你想要的xml。

<include android:id="@+id/one" layout="@layout/one" 
         android:layout_width="wrap_content" android:layout_height="wrap_content" /> 
+0

我只想在第二个活动中包含相同的表格布局而不是整个布局? – ekjyot

+0

单独定义表格布局,并包含在两个活动中! – Noby

相关问题