如何将TableLayout在一种布局中使用到另一种布局中?

发布于 2024-11-27 23:43:47 字数 116 浏览 6 评论 0原文

我在“action.xml”中有一个 TableLayout,并且有另一个文件“grid.xml”,所以我想从 grid.xml 类文件绑定 TableLayout,那么我该怎么做呢?

谢谢, @唠叨。

I have a TableLayout in "action.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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

感情洁癖 2024-12-04 23:43:47

您可以通过以下方式将一个 xml 文件包含到另一个 xml 文件中:

<include 
    android:id="@+id/header" 
    layout="@layout/xml_file_to_include" />

you can include one xml file into another xml file thru:

<include 
    android:id="@+id/header" 
    layout="@layout/xml_file_to_include" />
感情废物 2024-12-04 23:43:47

您可以像这样将 xml 文件导入到另一个文件中

<include  layout="@layout/mylayout" android:id="@+id/id" />

you can import the xml file into the another one like this way

<include  layout="@layout/mylayout" android:id="@+id/id" />
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文