Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

怎么控制menu #146

Open
yishangfei opened this issue Nov 15, 2018 · 5 comments
Open

怎么控制menu #146

yishangfei opened this issue Nov 15, 2018 · 5 comments

Comments

@yishangfei
Copy link

image

想问一下怎么通过代码控制这个menu的显示

@we1lless
Copy link

怎么个控制法 添加与删除吗?

@yishangfei
Copy link
Author

差不多吧 就是假如是这个包名就显示3个 那个包名就显示4个 @1160411011

@we1lless
Copy link

we1lless commented Jan 22, 2019

 你可以分两个数组,不写menu 。         做判断,使用addMenu进行添加。如果要刷新可以clear再add

@BNDG
Copy link

BNDG commented Mar 26, 2019

感觉可以把item都加上 比方5个 然后用getMenu().getItem().setVisible()进行动态显示隐藏

@yishangfei
Copy link
Author

他这个不是只能在
imagexml里面写吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants