1

Is it possible to get Action bar overflow button click listener ?

I have 3 options in action bar overflow button, and I want to capture the event when user clicked on overflow button. Is is possible to capture that click event ? Any idea ?

Kanika
  • 10,648
  • 18
  • 61
  • 81

1 Answers1

1

Unfortunately, no.

The overflow Button is created dynamically from a private inner class of the ActionMenuPresenter, which is an internal part of the framework that places each MenuItem in the ActionBar. There's just no way to attach a listener to it.

ActionMenuPrestener source

adneal
  • 30,484
  • 10
  • 122
  • 151