Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个导航抽屉,我想要另一个 LinearLayout,我该怎么做呢?我可以使用includeor merge,还是有办法在单个布局文件中定义它们。
include
merge
您可以将另一个布局文件包含在其他布局中
@include tag
您只需在此标签中包含您的布局 ID。您可以在此处找到文档 Re-using Layouts with