开发者

How to use TableLayout in one layout into another layout?

开发者 https://www.devze.com 2023-03-25 21:49 出处:网络
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?

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

精彩评论

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