如何在 fullscreenwrapper2 和 sl4a 中为 OptionsMenuItem 制作事件处理程序?
FullScreenWrapper2App.get_android_instance().addOptionsMenuItem("Exit","exit",None,"ic_menu_revert") # adding exit options successfully, but how to make event handler of this?
self.views.exit.add_event(click_EventHandler(self.views.exit, self.close_out)) #this is works, trigger close_out function when clicked.
self.views.but_exit.add_event(click_EventHandler("exit", self.close_out)) # and this is too! this is works, trigger close_out function when clicked.
任何人都可以让它出汗吗?