How to use TableLayout in one layout into another layout?
I have a TableLayout in "ac开发者_StackOverflow中文版tion.xml" and i have another file "grid.xml" so i want to bind TableLayout from grid.xml class file so how can i do this one?
Thanks, @nag.
you can include one xml file into another xml file thru:
<include
android:id="@+id/header"
layout="@layout/xml_file_to_include" />
you can import the xml file into the another one like this way
<include layout="@layout/mylayout" android:id="@+id/id" />
精彩评论