问题描述:

I am making an android app in which i want to make a dynamic table layout and rows into it.

Now i want to use the table layout in another activity That is I dont want to make same table in the second activity.

How shall i accomplish this?

Thanks

网友答案:

Try this...

Define your layout in one xml file. ex one.xml

use following code, in which ever xml you want.

<include android:id="@+id/one" layout="@layout/one"
                        android:layout_width="wrap_content" android:layout_height="wrap_content" />
相关阅读:
Top