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.
我想在我的文件菜单中放置一个子菜单。编写类不起作用,所以我在模块的 layer.xml 中放置了一个文件夹。现在我无法指定放置它的位置。如何在 layer.xml 中指定子菜单文件夹的位置?
这让我花了很长时间才弄清楚。它就像<attr name=position intvalue="pos"/>在文件夹声明之后添加pos您希望放置文件夹的位置一样简单。结果如下所示:
<attr name=position intvalue="pos"/>
pos
<folder name="myFolder"> <attr name="position" intvalue="0"/> </folder>