Skip to content

Commit

Permalink
Upgraded actionbarsherlock sources and fixed some resource conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
sbosley committed Mar 4, 2013
1 parent 19545cb commit 9786b11
Show file tree
Hide file tree
Showing 971 changed files with 37,008 additions and 30,863 deletions.
106 changes: 102 additions & 4 deletions actionbarsherlock/CHANGELOG.md
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,18 +1,116 @@
Change Log
===============================================================================

Version 4.2.0 *(2012-10-07)*
----------------------------

**Maven `artifactId` is now to 'actionbarsherlock'.**

Note: The `.Dialog` themes are now deprecated. These will be removed in a future
version of the library.

* Add `SearchView` widget for standard search interaction (API 8+ only)
* Fix: `ShareActionProvider` in the split action bar no longer fills the entire
screen.
* Fix: `ShareActionProvider` now does file I/O on a background thread.
* Fix: Automatically correct `ColorDrawable` not respecting bounds when used as
a stacked background.
* Fix: Ensure fragments collection is present before dispatching events.
* Fix: XML-defined `onClick` searches the correct context for the declared
method.
* Fix: Ensure action mode start/finish callbacks are invoked on the activity
for the native action bar.
* Fix: Allow tab callbacks to have a fragment transaction instance for any
`FragmentActivity`.
* Fix: Ensure `CollapsibleActionView` callbacks are dispatched in both native
and compatbility action bars.
* Fix: Remove `.ForceOverflow` themes. These never should have been included.


Version 4.1.0 *(2012-05-17)*
----------------------------

* Fix: Altered technique used for menu event dispatching through the fragment
manager for greater control.
* Fix: Do not dispatch menu creation event if the activity has been destroyed.
* Fix: Correct potential `NullPointerException` when expanding an action item.
* Fix: Correct potential `NullPointerException` when the hardware menu key was
pressed in an activity that is forcing the overflow menu.
* Fix: Do not set a listener on the native action bar tab wrapper unless a
compatibility listener has been set.
* Fix: Ensure the compatibility animation framework is always available on
views even if they were previously detached from the view hierarchy.


Version 4.0.2 *(2012-04-15)*
----------------------------

* Upgrade to r7 support library.
* Fix: Do not trigger menu creation after `onCreate` if activity is finishing.
* Fix: Prevent overflow from displaying if there are no overflow action items.
* Fix: Long-pressing menu key no longer triggers overflow.
* Fix: Use proper tab state-list drawable to mimic ICS.
* Fix: Ensure dispatching menu creation and preparation to fragments can
properly return `false` when appropriate to avoid rendering artifacts.
* Fix: Properly save and fetch action mode tag on ICS.
* Fix: Add missing density-specific resources for certain asssets and remove
unused assets.


Version 4.0.1 *(2012-03-25)*
----------------------------

* Add `ShareActionProvider` widget for use as action items.
* Re-add 'Styled' sample to provide a more comprehensive theming example.
* Fix: Do not dispatch options item selection to fragments if the activity
handles the callback.
* Fix: Prevent menu key from opening the overflow menu when an action mode is
currently displayed.
* Fix: Ensure fragment transaction instance is not `null` on initial tab
selection callback.
* Fix: Displaying an action mode while using stacked tab navigation no longer
throws an exception.
* Fix: Using expandable action item callbacks no longer results in a possible
exception on older devices.


Version 4.0.0 *(2012-03-07)*
----------------------------

Complete rewrite of the library to backport the Android 4.0 action bar.

* The minimum supported version of Android is now 2.1 (API 7).
* New base activities are provided (e.g., `SherlockActivity` and
`SherlockFragmentActivity`) which extend from the native activities.
* The support library sources are no longer included in the library. You must
include `android-support-v4.jar` in your project separately.
* Theming now mirrors that of the native action bar through the use of multiple
styles rather than through `ab`- and `am`-prefixed attributes in the theme.
* The action bar can be statically attached to an activity view without the
requirement of using one of the provided base activities.


Version 3.5.1 *(2012-01-03)*
----------------------------

* Fix: `NullPointerException` in `FragmentManager` can no longer occur when an
attempt is being made to save to a `Bundle` that has not yet been created.
* Fix: Pre-3.0 action item submenu dialogs now properly dismiss themselves when
an item of theirs is selected.


Version 3.5.0 *(2011-12-18)*
----------------------------

* Library now uses the `r6` version of the compatibility library for its base.
Ice Cream Sandwich-specific implementations are currently disabled, however,
but will be added in a future version of the library.

`MenuCompat`, `MenuItemCompat`, and `ActivityCompat` have be added back in
to ease transition to this library but all their methods and the classes
themselves have been deprecated.
* Rewritten menu and action item support from Ice Cream Sandwich.

* Removed the need for the custom `Window.FEATURE_ACTION_ITEM_TEXT` flag.
You should now use the `showAsAction` attribute and/or the
`setShowAsAction(int)` method on each `MenuItem` to control whether or
Expand All @@ -29,7 +127,7 @@ Version 3.5.0 *(2011-12-18)*
* Fix: Invisible sub-menu items are no longer shown on the pre-3.0 popup list.


Version 3.4.2 *(2011-11-09)*
Version 3.4.2 *(2001-11-09)*
----------------------------

* Fix: Stacked action bar now properly sets the tab bar background based on
Expand Down Expand Up @@ -103,7 +201,7 @@ Version 3.3.0 *(2011-10-11)*
[StackOverflow](http://stackoverflow.com/questions/5637894/dialogfragments-with-devices-api-level-11/7560686#7560686)
for more information.
* Fix: Popping a fragment off of the back stack now properly assigns its parent
activity.
activity.
* Fix: An activity result no longer causes a `NullPointerException` when the
target fragment no longer exists.
* Fix: Action item dividers are now properly initially hidden when their
Expand Down
11 changes: 11 additions & 0 deletions actionbarsherlock/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Contributing
============

If you would like to contribute code to ActionBarSherlock you can do so through
GitHub by forking the repository and sending a pull request.

When submitting code, please make every effort to follow existing conventions
and style in order to keep the code as readable as possible. Please also make
sure your code compiles by running `mvn clean verify`. Checkstyle failures
during compilation indicate errors in your style and can be viewed in the
`checkstyle-result.xml` file.
Empty file modified actionbarsherlock/LICENSE.txt
100644 → 100755
Empty file.
35 changes: 20 additions & 15 deletions actionbarsherlock/README.md
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
Action Bar Sherlock
===================
ActionBarSherlock
=================

ActionBarSherlock is an extension of the [compatibility library][1] designed
to facilitate the use of the action bar design pattern across all versions of
Android through a single API.
ActionBarSherlock is an standalone library designed to facilitate the use of
the action bar design pattern across all versions of Android through a single
API.

The library will automatically use the [native ActionBar][2] implementation on
Android 3.0 or later. For previous versions which do not include ActionBar, a
custom action bar implementation will automatically be wrapped around the
layout. Support for this goes all the way back to Android 1.6.

Try out the sample applications on the Android Market: [Feature Demos][4],
[Shakespeare][5], and [Styled Action Bar][6].
Android 4.0 or later. For previous versions which do not include ActionBar, a
custom action bar implementation based on the sources of Ice Cream Sandwich
will automatically be wrapped around the layout. This allows you to easily
develop an application with an action bar for every version of Android from 2.x
and up.

**See http://actionbarsherlock.com for more information.**

![Example Image][3]

Try out the sample applications on the Android Market: [Feature Demos][4],
[Fragments][5], and [RoboGuice][6].

Continuous integration is provided by [Travis CI][7].



Developed By
Expand All @@ -29,7 +33,7 @@ Developed By
License
=======

Copyright 2011 Jake Wharton
Copyright 2012 Jake Wharton

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -50,6 +54,7 @@ License
[1]: http://android-developers.blogspot.com/2011/03/fragments-for-all.html
[2]: http://developer.android.com/guide/topics/ui/actionbar.html
[3]: http://actionbarsherlock.com/static/feature.png
[4]: https://market.android.com/details?id=com.actionbarsherlock.sample.demos
[5]: https://market.android.com/details?id=com.actionbarsherlock.sample.shakespeare
[6]: https://market.android.com/details?id=com.actionbarsherlock.sample.styledactionbar
[4]: https://play.google.com/store/apps/details?id=com.actionbarsherlock.sample.demos
[5]: https://play.google.com/store/apps/details?id=com.actionbarsherlock.sample.fragments
[6]: https://play.google.com/store/apps/details?id=com.actionbarsherlock.sample.roboguice
[7]: https://travis-ci.org/JakeWharton/ActionBarSherlock
121 changes: 121 additions & 0 deletions actionbarsherlock/checkstyle.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC
"-//Puppy Crawl//DTD Check Configuration 1.2//EN"
"http://www.puppycrawl.com/dtds/configuration_1_2.dtd">

<module name="Checker">
<!--module name="NewlineAtEndOfFile"/-->
<module name="FileLength"/>
<module name="FileTabCharacter"/>

<!-- Trailing spaces -->
<module name="RegexpSingleline">
<property name="format" value="\s+$"/>
<property name="message" value="Line has trailing spaces."/>
</module>

<module name="TreeWalker">
<property name="cacheFile" value="${checkstyle.cache.file}"/>

<!-- Checks for Javadoc comments. -->
<!-- See http://checkstyle.sf.net/config_javadoc.html -->
<!--module name="JavadocMethod"/-->
<!--module name="JavadocType"/-->
<!--module name="JavadocVariable"/-->
<!--module name="JavadocStyle"/-->


<!-- Checks for Naming Conventions. -->
<!-- See http://checkstyle.sf.net/config_naming.html -->
<!--module name="ConstantName"/-->
<!--module name="LocalFinalVariableName"/-->
<!--module name="LocalVariableName"/-->
<module name="MemberName"/>
<!--module name="MethodName"/-->
<module name="PackageName"/>
<!--module name="ParameterName"/-->
<!--module name="StaticVariableName"/-->
<!--module name="TypeName"/-->


<!-- Checks for imports -->
<!-- See http://checkstyle.sf.net/config_import.html -->
<module name="AvoidStarImport"/>
<module name="IllegalImport"/> <!-- defaults to sun.* packages -->
<module name="RedundantImport"/>
<module name="UnusedImports"/>


<!-- Checks for Size Violations. -->
<!-- See http://checkstyle.sf.net/config_sizes.html -->
<!--module name="LineLength"/-->
<!--module name="MethodLength"/-->
<!--module name="ParameterNumber"/-->


<!-- Checks for whitespace -->
<!-- See http://checkstyle.sf.net/config_whitespace.html -->
<!--module name="EmptyForIteratorPad"/-->
<!--module name="MethodParamPad"/-->
<!--module name="NoWhitespaceAfter"/-->
<!--module name="NoWhitespaceBefore"/-->
<!--module name="OperatorWrap"/-->
<!--module name="ParenPad"/-->
<!--module name="TypecastParenPad"/-->
<!--module name="WhitespaceAfter"/-->
<!--module name="WhitespaceAround"/-->


<!-- Modifier Checks -->
<!-- See http://checkstyle.sf.net/config_modifiers.html -->
<!--module name="ModifierOrder"/-->
<!--module name="RedundantModifier"/-->


<!-- Checks for blocks. You know, those {}'s -->
<!-- See http://checkstyle.sf.net/config_blocks.html -->
<!--module name="AvoidNestedBlocks"/-->
<!--module name="EmptyBlock"/-->
<!--module name="LeftCurly"/-->
<!--module name="NeedBraces"/-->
<!--module name="RightCurly"/-->


<!-- Checks for common coding problems -->
<!-- See http://checkstyle.sf.net/config_coding.html -->
<!--module name="AvoidInlineConditionals"/-->
<module name="DoubleCheckedLocking"/>
<!--module name="EmptyStatement"/-->
<!--module name="EqualsHashCode"/-->
<!--module name="HiddenField"/-->
<!--module name="IllegalInstantiation"/-->
<!--module name="InnerAssignment"/-->
<!--module name="MagicNumber"/-->
<!--module name="MissingSwitchDefault"/-->
<module name="RedundantThrows"/>
<!--module name="SimplifyBooleanExpression"/-->
<!--module name="SimplifyBooleanReturn"/-->
<module name="StringLiteralEquality"/>
<module name="CovariantEquals"/>
<!--module name="NoClone"/-->
<module name="NoFinalizer"/>
<module name="PackageDeclaration"/>
<!--module name="FallThrough"/-->

<!-- Checks for class design -->
<!-- See http://checkstyle.sf.net/config_design.html -->
<!--module name="DesignForExtension"/-->
<!--module name="FinalClass"/-->
<!--module name="HideUtilityClassConstructor"/-->
<!--module name="InterfaceIsType"/-->
<!--module name="VisibilityModifier"/-->


<!-- Miscellaneous other checks. -->
<!-- See http://checkstyle.sf.net/config_misc.html -->
<!--module name="ArrayTypeStyle"/-->
<!--module name="FinalParameters"/-->
<!--module name="TodoComment"/-->
<module name="UpperEll"/>
</module>
</module>
11 changes: 2 additions & 9 deletions actionbarsherlock/library/AndroidManifest.xml
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="100" android:versionName="4.2.0" package="com.actionbarsherlock">

<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="com.actionbarsherlock"
android:versionCode="50"
android:versionName="3.5.0">

<uses-sdk
android:minSdkVersion="4"
android:targetSdkVersion="13" />
<uses-sdk android:minSdkVersion="7" android:targetSdkVersion="16"/>

</manifest>
4 changes: 2 additions & 2 deletions actionbarsherlock/library/README.md
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ This folder contains the main library which should be linked against as an
Android library project in your application.

For more information see the "Including In Your Project" section of the
[download page][1].
[usage page][1].






[1]: http://actionbarsherlock.com/download.html
[1]: http://actionbarsherlock.com/usage.html
Binary file not shown.
Loading

0 comments on commit 9786b11

Please sign in to comment.