-
Notifications
You must be signed in to change notification settings - Fork 564
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clicking logo does not trigger onOptionsItemSelected #29
Comments
The documentation needs to be updated on this, the id should be This patch seems to do the trick for the logo, please review it and see how it works for you.
This is how I configured the action bar:
The normal icon should work as intended, you can see an example of it here: |
API documentation for the methods whose signatures match the native action bar have been copied verbatim from Android 3.1 so there may be a few differences. It should definitely be given a looking over before merging to master. |
@johannilsson, yep that patch takes care of both issues here (tested in NAVIGATION_MODE_LIST).
Thanks! @JakeWharton, yeah I recognized some of that text from http://developer.android.com/guide/topics/ui/actionbar.html. :) |
That patch worked...!!! Thanks...!!! |
One more thing...!!! Can I disable click on the home icon...??? I mean it should not show the changed background when it is pressed...!!! |
The documentation for ActionBar.NAVIGATION_MODE_STANDARD states:
...however this does not seem to occur in my app. The highlight colour is shown, but it does not reach either onOptionsItemSelected or onMenuItemSelected.
The same thing occurs in both NAVIGATION_MODE_STANDARD and NAVIGATION_MODE_LIST.
Note also that android.R.id.home is not resolvable in 2.3.3 (API level 10), it's only available since 3.0 (API level 11 or higher).
The text was updated successfully, but these errors were encountered: