当前位置: 动力学知识库 > 问答 > 编程问答 >

Android: how to show a dynamic table that is create in 1 class to show in another class also

问题描述:

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" />
分享给朋友:
您可能感兴趣的文章:
随机阅读: