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.
我想知道如何克隆视图层次结构中已经存在的视图对象,以便可以再次将其添加到同一视图层次结构中。
使用 xml 布局时,您可以在另一个布局中定义您的视图,并使用该<include ..>指令将其多次放置在多个位置。
<include ..>