Codenameone Layered Layout

若如初见. 提交于 2019-12-20 06:28:11

问题


I have two containers on a layered layout say c1 and c2. c1 has a lot of buttons, drag n drop etc. c2 has a translucent background for the entire screen with a centre aligned image and a close button.

I need to be able to automatically disable all actions for c1 when c2 is added over c1. While I can handle this programatically when c2 is added over c1 during runtime, it would great to automatically disable all events for c1.

Is there a better way to handle this ?

Thanks


回答1:


I think making the top layer focusable should grab the events from the underlying component. Haven't tested it though.



来源:https://stackoverflow.com/questions/25852251/codenameone-layered-layout

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!