-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Adds ActionBarDrawerToggle compatible with ActionBarSherlock #946
Conversation
Signed-off-by: ianhanniballake <ian.hannibal.lake@gmail.com>
I can't add things like this until the support library is updated in Maven central. |
Thanks, I'll create another pull request if that ever happens. |
Google keeps saying they will... hopefully sooner rather than later. |
@JakeWharton - as Google is now publishing Support v13 to Maven as per this announcement, would you consider reopening this pull request? |
Soon :) |
any updates folks? |
An update for this would be greatly appreciated! |
This is very important for our project, any updates? :D |
Here is an alternative way to do it: @OverRide if (item.getItemId() == android.R.id.home) { if (mDrawerLayout.isDrawerOpen(mDrawerList)) { return super.onOptionsItemSelected(item); On Thu, Jun 13, 2013 at 12:22 PM, kihaki notifications@github.com wrote:
Roman Alifanov - MCAD - MCTS - MCP - MCT |
I found an issue on this commit. 'onOptionsItemSelected' must return true whenever it consumes the event. |
@animaonline that works fine for API 11+ devices, but will still display the caret for older devices. |
@ronaldoeyeem - I've updated my repository (https://github.com/ianhanniballake/ActionBarSherlock) with that fixed. @JakeWharton - would you like me to create a new pull request with these changes and that new commit or wait until we resolve this pull request? |
For a temporary solution for the caret if you want to go with @animaonline's (temporary) solution, you can change the up indicator in your Activity's theme with something like
Of course this won't make the icon slide, but it's a little better graceful degradation than having the up caret. |
In honor of Google not yet publishing updated dependencies to public repositories, I've taken this one step further with another implementation. This one is based on support-v4 r18 source code and includes an ABS demo. GitHub repo/branch: https://github.com/jameswald/ActionBarSherlock/tree/navigation-drawer Provides navigation drawer support back to API 7 on par with the Android 4.3 implementation. See the ABS demo The Android training guide Creating a Navigation Drawer is still based on r13 and has not yet been updated for r18. In addition to the training guide, your Activity class must implement This cannot be made available for general use because Google has not yet published Android 4.3_r1 or support-v4 r18 to a public Maven repository. Until that day comes, this change will prevent ABS from building without additional efforts to get the Android 4.3_r1 and support-v4 r18 dependencies installed in your local Maven repository. |
FYI Google has never published API jars or support library jars to Maven central and will not do so moving forward. |
Adds ActionBarDrawerToggle helper clas compatible with ActionBarSherlock for use with DrawerLayout added in Support Library revision 13.
Signed-off-by: ianhanniballake ian.hannibal.lake@gmail.com