onOptionsItemSelected() not called when clicking on menu item which has an actionLayout set on it
问题 In my action bar, I have defined a menu item that can show text "DONE" by the code below: Menu.xml: <menu xmlns:android="http://schemas.android.com/apk/res/android" > <item android:id="@+id/action_register_text" android:actionLayout="@layout/action_done_text" android:title="@string/action_done" android:showAsAction="always"/> </menu> action_done_text.xml: <?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/expand