【发布时间】:2014-09-02 20:19:57
【问题描述】:
我试图让 FragmentPagerAdapter 中的 Fragment 有自己的用于 MenuItem 的 onclicklistener。
换句话说,我正在尝试在 Fragment 中使用 Activity 的 onOptionsItemSelected 方法
我该怎么做?
我尝试使用 onContextItemSelected(MenuItem theItem) 和 onOptionsItemSelected(MenuItem theItem) 无济于事
【问题讨论】:
标签: android android-fragments fragment fragmentpageradapter