AppCompat v7 Toolbar onOptionsItemSelected not called

前端 未结 6 1780
感动是毒
感动是毒 2020-12-14 00:15

I changed from the original ActionBar to the AppCompat Toolbar and setSupportActionBar(toolbar). When I am using getSupportActionBar() and setDisplayHomeAsUpEnabled(true) fo

6条回答
  •  离开以前
    2020-12-14 01:01

    In my case the setHasOptionsMenu(true); wasn't enabled on onCreateView. Hope this helps someone.

提交回复
热议问题