-
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
Mimic Native ActionBar API #25
Conversation
…he standard navigation state (i.e., not tabbed or list navigation).
…hlighted in Eclipse.
…ated marshal to `setDisplayShowHomeEnabled(boolean)`.
…te example application to demonstrate all the new features. Clean up some code from previous commits to conform to existing style of library.
Added navigation modes for standard (title only) and list navigation. |
… icon action item.
…he screen and aligns more properly with the up indicator.
…underlying values are relevant to the current action bar state.
…he possible values.
…e available on API level 4 and our minimum target is API level 3.
…bread devices. Update both the minimum and target API levels to 4 (Android 1.6) and 10 (Android 2.3.3), respectively. API level 3 accounts for only about 2% of all devices and has a highly broken implementation of the layout rendering engine which already did not render this library properly most of the time. API level 10 is the newest and final API level without a native ActionBar.
I believe I have everything except for tabbed navigation implemented. Been a crazy 24 hours of hacking all this support in but I think it turned out pretty well. I still have a few things on my TODO list other than tabbed navigation but they can wait a bit. Check out the example app for a full demo of the new features. |
Wow, you've been busy at work! And it looks really really good, will see if I can fix the tabbed navigation soonish. Sorry that I has been slightly away but it's been a crazy week here. |
Checked out the example and really like the navigation mode list :) |
Amazing! Great work. |
…emo. Centralize the button enable/disable logic in the demo.
…navigation mode hides their implementation.
…l then show/hide the subtitle's view.
I've merged this to the branch mimic-native-api and added initial support for tabs. Support for tabs is far from complete but it do look pretty good already even though it's hacked up and lack support for configuration and such, will continue the work during the week. |
…avigated to by the trackball.
…e a Menu implementor. This allows for fun stuff like inflation of action items from menu XML files (see OtherActivity in the demo). Restrictions: * isEnabled/isVisible do not work. * Home action item must have id of `R.id.actionbar_item_home` to be properly recognized.
…ative-api Conflicts: actionbar/src/com/markupartist/android/widget/ActionBar.java
Let me know what you think of JakeWharton/android-actionbar@0b3d97218adc265a67d8ecb7896abf5d9ef041d3. I can revert it if it is not the route you want to go in. It fixes #7 and is something I do in the custom version of your library that is used in the yet-unreleased ActionBarSherlock v3. |
…) methods require that the item is checkable.
…ty for future support of custom views and showAsAction support.
…iew in the click listener. Use direct lookups to Action and Tab instance properties to save a method lookup and call.
…he native ActionBar.Tab class. Demo activity has been updated to randomly assign these to new tabs.
Updated demo apk linked above for those interested. Two problems i've noticed:
|
Jake, this looks really good and you have made huge progress during the last days, I'm not too happy with the naming of the add methods but I guess I can get used to it and I see the benefits of implementing Menu. It might be possible to refactor out handling of action items to a separate view and have addAction methods to delagate to that view from the action bar, will have to think about that. My time is somewhat limited since I can only contribute a few hours each evening, but I will review and apply a few fixes as soon as I can. I've started to work on the selection issues on the list view last night and I hope to finish that and a few other things during the week. I have also have a couple of uncommited fixes for the tab handling I hope I can wrap up really soon. Anyway, thank you and I'm looking forward to ActionBarSherlock v3. |
…tion(...)-style methods. The Menu implementation has been moved to a local subclass which is accessable via the `asMenu()` method.
I've pushed a small fix yesterday that solves the list navigation problems with trackball, your latest changes is also merged to mimic-native-api. |
Closing this since you've already merged it into a topic branch and I want to delete my forked repo since a few people started to watch it instead of yours. |
Mimic the API of the native ActionBar on Android 3.0+. This implements all of the methods using behavior that is follows as closely to the 3.0+ version's implementation as possible.
The example application has also been updated with buttons to demonstrate the new functionality.