【发布时间】:2019-11-15 09:08:21
【问题描述】:
我在public boolean onOptionsItemSelected(MenuItem item) {} 中有返回super.onOptionsItemSelected(item); 我想知道是否有任何理由不调用父方法。我不知道您是否需要更多上下文让我知道。
【问题讨论】:
-
你在
onCreate中添加了这行setHasOptionsMenu(true)吗? -
yes 添加到我的活动中但没有取得任何成果
-
你能发一个minimal reproducible example吗?
标签: java android methods return super