开发者

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" />
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜