Resolve merge conflicts from tablet branch
@ -0,0 +1,30 @@
|
|||||||
|
#Android generated
|
||||||
|
bin
|
||||||
|
library/bin
|
||||||
|
gen
|
||||||
|
|
||||||
|
#Eclipse
|
||||||
|
.project
|
||||||
|
.classpath
|
||||||
|
.settings
|
||||||
|
|
||||||
|
#IntelliJ IDEA
|
||||||
|
.idea
|
||||||
|
*.iml
|
||||||
|
*.ipr
|
||||||
|
*.iws
|
||||||
|
|
||||||
|
#Maven
|
||||||
|
target
|
||||||
|
release.properties
|
||||||
|
pom.xml.*
|
||||||
|
|
||||||
|
website/_site
|
||||||
|
|
||||||
|
#Ant
|
||||||
|
build.xml
|
||||||
|
local.properties
|
||||||
|
proguard.cfg
|
||||||
|
|
||||||
|
#OSX
|
||||||
|
.DS_Store
|
@ -0,0 +1,371 @@
|
|||||||
|
Change Log
|
||||||
|
===============================================================================
|
||||||
|
|
||||||
|
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
|
||||||
|
not text is shown
|
||||||
|
* Action item dividers are now added automatically only when necessary
|
||||||
|
to distinguish possible confusion between action items.
|
||||||
|
* Fix: Action views now properly size themselves within the bounded space
|
||||||
|
of the menu.
|
||||||
|
|
||||||
|
* Fix: List navigation no longer becomes unusable on certain device
|
||||||
|
configurations.
|
||||||
|
* Fix: `SubMenu`'s `findItem(int)` method now properly returns the support
|
||||||
|
version of `MenuItem`.
|
||||||
|
* Fix: Invisible sub-menu items are no longer shown on the pre-3.0 popup list.
|
||||||
|
|
||||||
|
|
||||||
|
Version 3.4.2 *(2011-11-09)*
|
||||||
|
----------------------------
|
||||||
|
|
||||||
|
* Fix: Stacked action bar now properly sets the tab bar background based on
|
||||||
|
the theme.
|
||||||
|
|
||||||
|
|
||||||
|
Version 3.4.1 *(2011-11-09)*
|
||||||
|
----------------------------
|
||||||
|
|
||||||
|
* The `makeFragmentName` method in `FragmentPagerAdapter` has been changed to
|
||||||
|
`public` scope to allow for easier access to your fragments that it is
|
||||||
|
managing.
|
||||||
|
* Action bar will now animate when calling `show()` or `hide()`.
|
||||||
|
* `SherlockPreferenceActivity` now provides full fragment and loader support.
|
||||||
|
* Examples for the plugins are now in their own sample application.
|
||||||
|
* Fix: Home icon no longer erroneously clipped when it exceeds the size of the
|
||||||
|
action bar.
|
||||||
|
* Fix: Tabs will now scroll horizontally to mimic the native action bar
|
||||||
|
behavior.
|
||||||
|
* Fix: Plugins now properly DO NOT inline their `R.java` integer constants.
|
||||||
|
* Fix: Tabs below the action bar are now styled with a default background so
|
||||||
|
that they do not incorrectly inherit an applied background unless explicity
|
||||||
|
declared.
|
||||||
|
|
||||||
|
|
||||||
|
Version 3.4.0 *(2011-10-30)*
|
||||||
|
----------------------------
|
||||||
|
|
||||||
|
* Library now uses the `r4` 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.
|
||||||
|
* Context menu callbacks now use the support version of `MenuItem` to maintain
|
||||||
|
consistency.
|
||||||
|
* Added preference plugin which provides an action bar enhanced preference
|
||||||
|
screen.
|
||||||
|
* Fix: `abHomeLayout` theme attribute is now honored.
|
||||||
|
* Fix: `onPrepareOptionsMenu` is now properly dispatched upon menu
|
||||||
|
invalidation.
|
||||||
|
|
||||||
|
|
||||||
|
Version 3.3.1 *(2011-10-20)*
|
||||||
|
----------------------------
|
||||||
|
|
||||||
|
ADT 14 is now required. Maven 3 is required if building from the command line.
|
||||||
|
|
||||||
|
* XML-defined `onClick` attributes will now check for an `onClick` method that
|
||||||
|
takes an `android.support.v4.view.MenuItem` instance.
|
||||||
|
* Tabs on medium screens in landscape now display inline rather than below the
|
||||||
|
action bar to mirror how Android 4.0 behaves with the same configuration.
|
||||||
|
* Fix: Menu inflater properly checks activity context for `onClick` method
|
||||||
|
declared in the XML.
|
||||||
|
* Fix: Dialog fragment properly saves its `showDialog` state when not being
|
||||||
|
used as a popup.
|
||||||
|
* Fix: Return `-1` when in tab navigation but no tab is selected. This brings
|
||||||
|
the library in line with the post-3.0 behavior.
|
||||||
|
* Fix: Removing a menu group no longer throws an `IndexOutOfBoundsException`.
|
||||||
|
* Fix: `getSelectedTab` and `getTabAt` no longer throw `NullPointerException`s
|
||||||
|
on post-3.0 when no tab was selected or no tab existed at the specified
|
||||||
|
position, respectively.
|
||||||
|
* Fix: `findFragmentById` now properly returns fragments attached to
|
||||||
|
`android.R.id.content` when run on pre-3.0 devices.
|
||||||
|
|
||||||
|
|
||||||
|
Version 3.3.0 *(2011-10-11)*
|
||||||
|
----------------------------
|
||||||
|
|
||||||
|
* Tabs are now displayed below the action bar on all medium-screen devices and
|
||||||
|
portrait large-screen devices.
|
||||||
|
* Fix: Dialog fragments no longer throw an `IllegalStateException` when being
|
||||||
|
used as a regular fragment (i.e., not as a popup). See
|
||||||
|
[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.
|
||||||
|
* 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
|
||||||
|
associated action items are as well.
|
||||||
|
|
||||||
|
|
||||||
|
Version 3.2.3 *(2011-09-16)*
|
||||||
|
----------------------------
|
||||||
|
|
||||||
|
* Fix: Fragments in a `ViewPager` that contributed items to the options menu
|
||||||
|
were caught in a race condition causing inconsistent results when a new page
|
||||||
|
was selected. This regression was introduced in version 3.2.2.
|
||||||
|
|
||||||
|
|
||||||
|
Version 3.2.2 *(2011-09-15)*
|
||||||
|
----------------------------
|
||||||
|
|
||||||
|
* Fix: Side-effects related to using `FragmentMapActivity` due to how it was
|
||||||
|
referencing resources from the main library.
|
||||||
|
* Fix: Fragments adjacent to the currently selected fragment in a `ViewPager`
|
||||||
|
no longer receive context menu events.
|
||||||
|
* Fix: Eliminate exception when inflating context menus on 3.0+ when using
|
||||||
|
`getMenuInflater()`.
|
||||||
|
* Fix: `ViewPager` now determines whether or not an activity menu invalidation
|
||||||
|
is required independently of whether or not fragments were created or
|
||||||
|
destroyed. This should fix an edge case where an activity with a `ViewPager`
|
||||||
|
containing only two fragments would not get its menu properly invalidated.
|
||||||
|
|
||||||
|
|
||||||
|
Version 3.2.1 *(2011-09-12)*
|
||||||
|
----------------------------
|
||||||
|
|
||||||
|
* Fix: Action mode API incorrectly using the native `Menu` and `MenuItem`
|
||||||
|
classes causing an easy pitfall for `ClassCastExceptions`.
|
||||||
|
* Fix: Large action bar backgrounds increasing the size beyond that alloted in
|
||||||
|
the theme.
|
||||||
|
|
||||||
|
|
||||||
|
Version 3.2.0 *(2011-09-05)*
|
||||||
|
----------------------------
|
||||||
|
|
||||||
|
* Added support for `MapView` and the Google APIs through the use of
|
||||||
|
`FragmentMapActivity`. If you are using a map within a fragment you must
|
||||||
|
ensure it is always attached to an activity which extends from this new base
|
||||||
|
class.
|
||||||
|
|
||||||
|
Since supporting maps requires compiling against the Google APIs, this
|
||||||
|
functionality is implemented in the form of a plugin which is to be used
|
||||||
|
alongside the normal library. You can choose to add it as an additional
|
||||||
|
library project or by including it as a `.jar`. Maven users may simply
|
||||||
|
include the additional dependency (artifactId: `plugin-maps`).
|
||||||
|
* Fix: Fragments adjacent to the currently selected fragment in a `ViewPager`
|
||||||
|
no longer contribute to the activity menu.
|
||||||
|
* `ActionBar.Tab` has been changed from an interface to an abstract class to
|
||||||
|
mirror its native counterpart.
|
||||||
|
|
||||||
|
|
||||||
|
Version 3.1.3 *(2011-08-14)*
|
||||||
|
----------------------------
|
||||||
|
|
||||||
|
* Renamed all resources to be prefixed with `abs__` to avoid conflicts when
|
||||||
|
including in your project.
|
||||||
|
* Fix: Action bar background being set on two views causing artifacts to remain
|
||||||
|
on screen when the action bar was hidden.
|
||||||
|
* Fix: Incorrect sub-menu item being selected by default when the sub-menu was
|
||||||
|
triggered from the native options menu on pre-3.0.
|
||||||
|
* Fix: `MenuItem.setVisible` now properly updates the associated action item and
|
||||||
|
native menu item visible state.
|
||||||
|
* Fix: Adding items to a menu now honors its ordering and category.
|
||||||
|
* Fix: Fragment options item selected callback now uses the proper version of
|
||||||
|
`MenuItem`.
|
||||||
|
|
||||||
|
|
||||||
|
Version 3.1.2 *(2011-08-07)*
|
||||||
|
----------------------------
|
||||||
|
|
||||||
|
* Fix: `MenuItem.getMenuInfo()` was throwing runtime exception. Will now just
|
||||||
|
return `null`.
|
||||||
|
* Fix: Dragging over a `WebView` contained in a `ViewPager` would not register.
|
||||||
|
* Fix: Inflation of context menu incorrectly being handled by the custom menu
|
||||||
|
inflater for the library.
|
||||||
|
|
||||||
|
|
||||||
|
Version 3.1.1 *(2011-07-31)*
|
||||||
|
----------------------------
|
||||||
|
|
||||||
|
* Fix: `MenuItem.getSubMenu` now returns a support instance rather than a
|
||||||
|
native instance.
|
||||||
|
* Fix: Fragment methods `onAttach` and `onInflate` incorrectly regressed to use
|
||||||
|
`Activity` instead of a `FragmentActivity` in their method signatures.
|
||||||
|
* Fix: Retained fragments not being re-attached on pre-3.0 when attached to
|
||||||
|
`android.R.id.content` upon activity recreation.
|
||||||
|
* Fix: `onPrepareOptionsMenu` not dispatched to fragments. This still will only
|
||||||
|
occur if the activity method returns true (which is the default).
|
||||||
|
* Fix: `Menu.findItem` not returning `null` when the item was not found on
|
||||||
|
Android 3.0+.
|
||||||
|
|
||||||
|
|
||||||
|
Version 3.1.0 *(2011-07-22)*
|
||||||
|
----------------------------
|
||||||
|
|
||||||
|
Due to shortcomings in the Android theming system, a small change must be made
|
||||||
|
in how this library handles themes. If you were using a custom style for
|
||||||
|
`actionBarStyle` you must now specify its attributes in the root of the theme
|
||||||
|
and prefix them with 'ab'.
|
||||||
|
|
||||||
|
You can see an example of this in the `SherlockCustom` theme in
|
||||||
|
`samples/demos/res/values/styles.xml`.
|
||||||
|
|
||||||
|
* Library now uses the `r3` version of the compatibility library for its base.
|
||||||
|
* `actionBarStyle` is no longer a valid theme attribute (see note above).
|
||||||
|
* Added the demo project included with the new compatibility library under
|
||||||
|
`samples/demos/` and merged in the old 'featuredemo'.
|
||||||
|
* Dividers are now shown on pre-3.0 devices between all action items.
|
||||||
|
* `Window.FEATURE_ACTION_BAR_OVERLAY` is now honored on pre-3.0 devices.
|
||||||
|
* Inflation of XML menu resources will now honor `android:actionLayout` and
|
||||||
|
`android:actionViewClass` attributes.
|
||||||
|
* Buttons for displaying the determinate and indeterminate progress bars have
|
||||||
|
been added to the feature toggle demo.
|
||||||
|
* Added support for indeterminate progress bar. Due to the `final` modifier on
|
||||||
|
the native type, you must use `setIndeterminateProgressBarVisibility(Boolean)`
|
||||||
|
and pass `Boolean.TRUE` or `Boolean.FALSE`.
|
||||||
|
* Fix: `MenuBuilder#removeItem(int)` and `MenuBuilder#findItem(int)` throwing
|
||||||
|
`IndexOutOfBoundsException`s when the item was not found.
|
||||||
|
* Fix: Theme attributes for home item data (e.g., icon, logo) will not be
|
||||||
|
overwritten by the special `MenuItem` instance for home.
|
||||||
|
* Fix: Native strings can now be specified for an XML menu `<item>` in
|
||||||
|
`android:title` and `android:titleCondensed`.
|
||||||
|
* `Window.FEATURE_ENABLE_ACTION_BAR_WATSON_TEXT` is now
|
||||||
|
`Window.FEATURE_ACTION_BAR_ITEM_TEXT`.
|
||||||
|
* `Widget.Sherlock.Spinner.DropDown.ActionBar` and
|
||||||
|
`Widget.Sherlock.Light.Spinner.DropDown.ActionBar` styles are now
|
||||||
|
`Widget.Sherlock.Spinner` and `Widget.Sherlock.Light.Spinner`, respectively.
|
||||||
|
* `Widget.Sherlock.ActionBarView_TabXXX` styles are now
|
||||||
|
`Widget.Sherlock.ActionBar.TabXXX`.
|
||||||
|
|
||||||
|
|
||||||
|
Version 3.0.3 *(2011-07-17)*
|
||||||
|
----------------------------
|
||||||
|
|
||||||
|
This version is a hotfix for incompatibilities introduced with the SDKs for
|
||||||
|
3.1 r2 and 3.2 r1. Due to unavoidable changes in the underlying SDK, the library
|
||||||
|
must now be compiled against API level 13.
|
||||||
|
|
||||||
|
* `actionModeStyle` and `actionModePopupWindowStyle` are no longer valid theme
|
||||||
|
attributes.
|
||||||
|
|
||||||
|
|
||||||
|
Version 3.0.2 *(2011-06-23)*
|
||||||
|
----------------------------
|
||||||
|
|
||||||
|
* Sub-menus for action items are now shown in a list dialog.
|
||||||
|
* Moved certain classes to the `com.actionbarsherlock.internal` package which
|
||||||
|
were not meant for public consumption. Despite being given `public` scope in
|
||||||
|
this new package, these classes should **NOT** be used under any circumstances
|
||||||
|
as their API can be considered highly volatile and is subject to change often
|
||||||
|
and without warning.
|
||||||
|
|
||||||
|
|
||||||
|
Version 3.0.1 *(2011-06-08)*
|
||||||
|
----------------------------
|
||||||
|
|
||||||
|
* Fix: `onOptionsItemSelected()` not being called in fragments if the activity
|
||||||
|
version returns `false`.
|
||||||
|
* Fix: `onCreateOptionsMenu()` not being called in fragments on Android 3.0+.
|
||||||
|
* New: Enable action item text display on pre-Android 3.0 by calling
|
||||||
|
`requestWindowFeature` with `Window.FEATURE_ENABLE_ACTION_BAR_WATSON_TEXT`.
|
||||||
|
* Fix: `setCustomView()` no longer automatically enables the custom view on
|
||||||
|
pre-3.0. You must call `setDisplayShowCustomEnabled()` in order to display
|
||||||
|
the view.
|
||||||
|
|
||||||
|
|
||||||
|
Version 3.0.0 *(2011-06-05)*
|
||||||
|
----------------------------
|
||||||
|
|
||||||
|
The API has been rewritten to mimic that of the native action bar. As a result,
|
||||||
|
usage now only requires changing a few imports to use the support versions
|
||||||
|
of classes and calling `getSupportActionBar()`. See the README for more info.
|
||||||
|
|
||||||
|
The rewrite necessitated tight interaction with the
|
||||||
|
[compatibility library](http://android-developers.blogspot.com/2011/03/fragments-for-all.html)
|
||||||
|
to the point where its sources are now included. You are no longer required to
|
||||||
|
have the standalone `.jar` file.
|
||||||
|
|
||||||
|
Also included is a default custom action bar for use by default on pre-3.0
|
||||||
|
devices. This custom implementation is based off of Johan Nilsson's
|
||||||
|
[Android-ActionBar](https://github.com/johannilsson/android-actionbar) and the
|
||||||
|
[work that I have done](https://github.com/johannilsson/android-actionbar/pull/25)
|
||||||
|
on it.
|
||||||
|
|
||||||
|
More details are available at http://actionbarsherlock.com
|
||||||
|
|
||||||
|
|
||||||
|
Version 2.1.1 *(2011-03-21)*
|
||||||
|
----------------------------
|
||||||
|
|
||||||
|
**No changes to library code.**
|
||||||
|
|
||||||
|
* Moved library to the root of the repository.
|
||||||
|
* Added `samples/dependencies.py` script to automatically download the needed
|
||||||
|
dependencies for the sample projects.
|
||||||
|
|
||||||
|
|
||||||
|
Version 2.1.0 *(2011-03-21)*
|
||||||
|
----------------------------
|
||||||
|
|
||||||
|
**WARNING**: The
|
||||||
|
[Android Compatibility Library (v4)](http://android-developers.blogspot.com/2011/03/fragments-for-all.html)
|
||||||
|
is now required.
|
||||||
|
|
||||||
|
* Added `ActionBarSherlock.Activity`, `ActionBarSherlock.FragmentActivity`,
|
||||||
|
and `ActionBarSherlock.ListActivity` for extension by implementing
|
||||||
|
activities, the latter of which is deprecated. This affords a much tighter
|
||||||
|
integration and allows for the use of other new features listed below.
|
||||||
|
* New API method: `layout(Fragment)` will use the fragment argument as the
|
||||||
|
content to the activity.
|
||||||
|
* New API method: `menu(int)` allows for the inflation of menu XMLs from a
|
||||||
|
resource. For the non-native implementation, the XML can be inflated to a
|
||||||
|
custom Menu which can then be applied appropriately to the third-party
|
||||||
|
action bar. Sub-menus are also supported. Third-party action bar handlers
|
||||||
|
should implement `ActionBarSherlock.HasMenu` for this functionality. *This
|
||||||
|
feature requires that activities extend from one of the provided activity
|
||||||
|
base classes.*
|
||||||
|
* New API method: `homeAsUp(boolean)`. This mimics the native method
|
||||||
|
`setDisplayHomeAsUpEnalbed` on the native action bar. Third-party action bar
|
||||||
|
handlers should implement `ActionBarSherlock.HasHomeAsUp` for this
|
||||||
|
functionality.
|
||||||
|
* New API method: `useLogo(boolean)` will trigger the action bar to hide the
|
||||||
|
application icon/home button and title and show a larger logo representing
|
||||||
|
the application. Third-party action bar handlers should implement
|
||||||
|
`ActionBarSherlock.HasLogo` for this functionality.
|
||||||
|
* New API method: `listNavigation(SpinnerAdapter, OnNavigationListener)`. Tells
|
||||||
|
the action bar to use drop-down style navigation with the specified list of
|
||||||
|
items and callback listener. Third-party action bar handlers should
|
||||||
|
implement `ActionBarSherlock.HasListNavigation` for this functionality.
|
||||||
|
* Javadocs are now available at
|
||||||
|
[jakewharton.github.com/ActionBarSherlock](http://jakewharton.github.com/ActionBarSherlock/).
|
||||||
|
* A standalone JAR is now available via the
|
||||||
|
[GitHub downloads page](https://github.com/JakeWharton/ActionBarSherlock/downloads)
|
||||||
|
or in my
|
||||||
|
[personal maven repository](http://r.jakewharton.com/maven/)
|
||||||
|
as `com.jakewharton:android-actionbarsherlock:2.1.0`.
|
||||||
|
|
||||||
|
|
||||||
|
Version 2.0.1 *(2011-03-11)*
|
||||||
|
----------------------------
|
||||||
|
|
||||||
|
* Use `Class.forName()` for detection of native action bar. This provides
|
||||||
|
compatability all the way back to Android 1.5.
|
||||||
|
|
||||||
|
|
||||||
|
Version 2.0.0 *(2011-03-09)*
|
||||||
|
----------------------------
|
||||||
|
Complete rewrite!
|
||||||
|
|
||||||
|
* New and better API.
|
||||||
|
* More sane logic and attachment to activity.
|
||||||
|
* Extensible via generics. Implement any ActionBar or roll your own with
|
||||||
|
minimal effort.
|
||||||
|
* Now a library project for easy inclusion in applications.
|
||||||
|
|
||||||
|
|
||||||
|
Version 1.0.0 *(2011-03-07)*
|
||||||
|
----------------------------
|
||||||
|
Initial release.
|
@ -0,0 +1,202 @@
|
|||||||
|
|
||||||
|
Apache License
|
||||||
|
Version 2.0, January 2004
|
||||||
|
http://www.apache.org/licenses/
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||||
|
|
||||||
|
1. Definitions.
|
||||||
|
|
||||||
|
"License" shall mean the terms and conditions for use, reproduction,
|
||||||
|
and distribution as defined by Sections 1 through 9 of this document.
|
||||||
|
|
||||||
|
"Licensor" shall mean the copyright owner or entity authorized by
|
||||||
|
the copyright owner that is granting the License.
|
||||||
|
|
||||||
|
"Legal Entity" shall mean the union of the acting entity and all
|
||||||
|
other entities that control, are controlled by, or are under common
|
||||||
|
control with that entity. For the purposes of this definition,
|
||||||
|
"control" means (i) the power, direct or indirect, to cause the
|
||||||
|
direction or management of such entity, whether by contract or
|
||||||
|
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||||
|
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||||
|
|
||||||
|
"You" (or "Your") shall mean an individual or Legal Entity
|
||||||
|
exercising permissions granted by this License.
|
||||||
|
|
||||||
|
"Source" form shall mean the preferred form for making modifications,
|
||||||
|
including but not limited to software source code, documentation
|
||||||
|
source, and configuration files.
|
||||||
|
|
||||||
|
"Object" form shall mean any form resulting from mechanical
|
||||||
|
transformation or translation of a Source form, including but
|
||||||
|
not limited to compiled object code, generated documentation,
|
||||||
|
and conversions to other media types.
|
||||||
|
|
||||||
|
"Work" shall mean the work of authorship, whether in Source or
|
||||||
|
Object form, made available under the License, as indicated by a
|
||||||
|
copyright notice that is included in or attached to the work
|
||||||
|
(an example is provided in the Appendix below).
|
||||||
|
|
||||||
|
"Derivative Works" shall mean any work, whether in Source or Object
|
||||||
|
form, that is based on (or derived from) the Work and for which the
|
||||||
|
editorial revisions, annotations, elaborations, or other modifications
|
||||||
|
represent, as a whole, an original work of authorship. For the purposes
|
||||||
|
of this License, Derivative Works shall not include works that remain
|
||||||
|
separable from, or merely link (or bind by name) to the interfaces of,
|
||||||
|
the Work and Derivative Works thereof.
|
||||||
|
|
||||||
|
"Contribution" shall mean any work of authorship, including
|
||||||
|
the original version of the Work and any modifications or additions
|
||||||
|
to that Work or Derivative Works thereof, that is intentionally
|
||||||
|
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||||
|
or by an individual or Legal Entity authorized to submit on behalf of
|
||||||
|
the copyright owner. For the purposes of this definition, "submitted"
|
||||||
|
means any form of electronic, verbal, or written communication sent
|
||||||
|
to the Licensor or its representatives, including but not limited to
|
||||||
|
communication on electronic mailing lists, source code control systems,
|
||||||
|
and issue tracking systems that are managed by, or on behalf of, the
|
||||||
|
Licensor for the purpose of discussing and improving the Work, but
|
||||||
|
excluding communication that is conspicuously marked or otherwise
|
||||||
|
designated in writing by the copyright owner as "Not a Contribution."
|
||||||
|
|
||||||
|
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||||
|
on behalf of whom a Contribution has been received by Licensor and
|
||||||
|
subsequently incorporated within the Work.
|
||||||
|
|
||||||
|
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||||
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
|
copyright license to reproduce, prepare Derivative Works of,
|
||||||
|
publicly display, publicly perform, sublicense, and distribute the
|
||||||
|
Work and such Derivative Works in Source or Object form.
|
||||||
|
|
||||||
|
3. Grant of Patent License. Subject to the terms and conditions of
|
||||||
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
|
(except as stated in this section) patent license to make, have made,
|
||||||
|
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||||
|
where such license applies only to those patent claims licensable
|
||||||
|
by such Contributor that are necessarily infringed by their
|
||||||
|
Contribution(s) alone or by combination of their Contribution(s)
|
||||||
|
with the Work to which such Contribution(s) was submitted. If You
|
||||||
|
institute patent litigation against any entity (including a
|
||||||
|
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||||
|
or a Contribution incorporated within the Work constitutes direct
|
||||||
|
or contributory patent infringement, then any patent licenses
|
||||||
|
granted to You under this License for that Work shall terminate
|
||||||
|
as of the date such litigation is filed.
|
||||||
|
|
||||||
|
4. Redistribution. You may reproduce and distribute copies of the
|
||||||
|
Work or Derivative Works thereof in any medium, with or without
|
||||||
|
modifications, and in Source or Object form, provided that You
|
||||||
|
meet the following conditions:
|
||||||
|
|
||||||
|
(a) You must give any other recipients of the Work or
|
||||||
|
Derivative Works a copy of this License; and
|
||||||
|
|
||||||
|
(b) You must cause any modified files to carry prominent notices
|
||||||
|
stating that You changed the files; and
|
||||||
|
|
||||||
|
(c) You must retain, in the Source form of any Derivative Works
|
||||||
|
that You distribute, all copyright, patent, trademark, and
|
||||||
|
attribution notices from the Source form of the Work,
|
||||||
|
excluding those notices that do not pertain to any part of
|
||||||
|
the Derivative Works; and
|
||||||
|
|
||||||
|
(d) If the Work includes a "NOTICE" text file as part of its
|
||||||
|
distribution, then any Derivative Works that You distribute must
|
||||||
|
include a readable copy of the attribution notices contained
|
||||||
|
within such NOTICE file, excluding those notices that do not
|
||||||
|
pertain to any part of the Derivative Works, in at least one
|
||||||
|
of the following places: within a NOTICE text file distributed
|
||||||
|
as part of the Derivative Works; within the Source form or
|
||||||
|
documentation, if provided along with the Derivative Works; or,
|
||||||
|
within a display generated by the Derivative Works, if and
|
||||||
|
wherever such third-party notices normally appear. The contents
|
||||||
|
of the NOTICE file are for informational purposes only and
|
||||||
|
do not modify the License. You may add Your own attribution
|
||||||
|
notices within Derivative Works that You distribute, alongside
|
||||||
|
or as an addendum to the NOTICE text from the Work, provided
|
||||||
|
that such additional attribution notices cannot be construed
|
||||||
|
as modifying the License.
|
||||||
|
|
||||||
|
You may add Your own copyright statement to Your modifications and
|
||||||
|
may provide additional or different license terms and conditions
|
||||||
|
for use, reproduction, or distribution of Your modifications, or
|
||||||
|
for any such Derivative Works as a whole, provided Your use,
|
||||||
|
reproduction, and distribution of the Work otherwise complies with
|
||||||
|
the conditions stated in this License.
|
||||||
|
|
||||||
|
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||||
|
any Contribution intentionally submitted for inclusion in the Work
|
||||||
|
by You to the Licensor shall be under the terms and conditions of
|
||||||
|
this License, without any additional terms or conditions.
|
||||||
|
Notwithstanding the above, nothing herein shall supersede or modify
|
||||||
|
the terms of any separate license agreement you may have executed
|
||||||
|
with Licensor regarding such Contributions.
|
||||||
|
|
||||||
|
6. Trademarks. This License does not grant permission to use the trade
|
||||||
|
names, trademarks, service marks, or product names of the Licensor,
|
||||||
|
except as required for reasonable and customary use in describing the
|
||||||
|
origin of the Work and reproducing the content of the NOTICE file.
|
||||||
|
|
||||||
|
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||||
|
agreed to in writing, Licensor provides the Work (and each
|
||||||
|
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||||
|
implied, including, without limitation, any warranties or conditions
|
||||||
|
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||||
|
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||||
|
appropriateness of using or redistributing the Work and assume any
|
||||||
|
risks associated with Your exercise of permissions under this License.
|
||||||
|
|
||||||
|
8. Limitation of Liability. In no event and under no legal theory,
|
||||||
|
whether in tort (including negligence), contract, or otherwise,
|
||||||
|
unless required by applicable law (such as deliberate and grossly
|
||||||
|
negligent acts) or agreed to in writing, shall any Contributor be
|
||||||
|
liable to You for damages, including any direct, indirect, special,
|
||||||
|
incidental, or consequential damages of any character arising as a
|
||||||
|
result of this License or out of the use or inability to use the
|
||||||
|
Work (including but not limited to damages for loss of goodwill,
|
||||||
|
work stoppage, computer failure or malfunction, or any and all
|
||||||
|
other commercial damages or losses), even if such Contributor
|
||||||
|
has been advised of the possibility of such damages.
|
||||||
|
|
||||||
|
9. Accepting Warranty or Additional Liability. While redistributing
|
||||||
|
the Work or Derivative Works thereof, You may choose to offer,
|
||||||
|
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||||
|
or other liability obligations and/or rights consistent with this
|
||||||
|
License. However, in accepting such obligations, You may act only
|
||||||
|
on Your own behalf and on Your sole responsibility, not on behalf
|
||||||
|
of any other Contributor, and only if You agree to indemnify,
|
||||||
|
defend, and hold each Contributor harmless for any liability
|
||||||
|
incurred by, or claims asserted against, such Contributor by reason
|
||||||
|
of your accepting any such warranty or additional liability.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
APPENDIX: How to apply the Apache License to your work.
|
||||||
|
|
||||||
|
To apply the Apache License to your work, attach the following
|
||||||
|
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||||
|
replaced with your own identifying information. (Don't include
|
||||||
|
the brackets!) The text should be enclosed in the appropriate
|
||||||
|
comment syntax for the file format. We also recommend that a
|
||||||
|
file or class name and description of purpose be included on the
|
||||||
|
same "printed page" as the copyright notice for easier
|
||||||
|
identification within third-party archives.
|
||||||
|
|
||||||
|
Copyright [yyyy] [name of copyright owner]
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
@ -0,0 +1,55 @@
|
|||||||
|
Action Bar Sherlock
|
||||||
|
===================
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
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].
|
||||||
|
|
||||||
|
**See http://actionbarsherlock.com for more information.**
|
||||||
|
|
||||||
|
![Example Image][3]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Developed By
|
||||||
|
============
|
||||||
|
|
||||||
|
* Jake Wharton - <jakewharton@gmail.com>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
License
|
||||||
|
=======
|
||||||
|
|
||||||
|
Copyright 2011 Jake Wharton
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the 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
|
@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<classpath>
|
||||||
|
<classpathentry kind="src" path="src"/>
|
||||||
|
<classpathentry kind="src" path="gen"/>
|
||||||
|
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
|
||||||
|
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
|
||||||
|
<classpathentry kind="output" path="bin/classes"/>
|
||||||
|
</classpath>
|
@ -0,0 +1,33 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<projectDescription>
|
||||||
|
<name>actionbarsherlock</name>
|
||||||
|
<comment></comment>
|
||||||
|
<projects>
|
||||||
|
</projects>
|
||||||
|
<buildSpec>
|
||||||
|
<buildCommand>
|
||||||
|
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
|
<buildCommand>
|
||||||
|
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
|
<buildCommand>
|
||||||
|
<name>com.android.ide.eclipse.adt.ApkBuilder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
|
</buildSpec>
|
||||||
|
<natures>
|
||||||
|
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
|
||||||
|
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||||
|
</natures>
|
||||||
|
</projectDescription>
|
@ -0,0 +1,13 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
|
||||||
|
<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" />
|
||||||
|
|
||||||
|
</manifest>
|
@ -0,0 +1,15 @@
|
|||||||
|
ActionBarSherlock Library
|
||||||
|
=========================
|
||||||
|
|
||||||
|
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].
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[1]: http://actionbarsherlock.com/download.html
|
After Width: | Height: | Size: 214 B |
After Width: | Height: | Size: 212 B |
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 749 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 799 B |
After Width: | Height: | Size: 799 B |
After Width: | Height: | Size: 231 B |
After Width: | Height: | Size: 198 B |
After Width: | Height: | Size: 198 B |
After Width: | Height: | Size: 198 B |
After Width: | Height: | Size: 203 B |
After Width: | Height: | Size: 204 B |
After Width: | Height: | Size: 309 B |
After Width: | Height: | Size: 309 B |
After Width: | Height: | Size: 314 B |
After Width: | Height: | Size: 314 B |
After Width: | Height: | Size: 329 B |
After Width: | Height: | Size: 476 B |
After Width: | Height: | Size: 462 B |
After Width: | Height: | Size: 493 B |
After Width: | Height: | Size: 225 B |
After Width: | Height: | Size: 160 B |
After Width: | Height: | Size: 525 B |
After Width: | Height: | Size: 254 B |
After Width: | Height: | Size: 224 B |
After Width: | Height: | Size: 150 B |
After Width: | Height: | Size: 540 B |
After Width: | Height: | Size: 255 B |
After Width: | Height: | Size: 199 B |
After Width: | Height: | Size: 198 B |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 732 B |
After Width: | Height: | Size: 520 B |
After Width: | Height: | Size: 803 B |
After Width: | Height: | Size: 607 B |
After Width: | Height: | Size: 607 B |
After Width: | Height: | Size: 232 B |
After Width: | Height: | Size: 189 B |
After Width: | Height: | Size: 189 B |
After Width: | Height: | Size: 192 B |
After Width: | Height: | Size: 190 B |
After Width: | Height: | Size: 191 B |
After Width: | Height: | Size: 280 B |
After Width: | Height: | Size: 278 B |
After Width: | Height: | Size: 300 B |
After Width: | Height: | Size: 300 B |
After Width: | Height: | Size: 328 B |
After Width: | Height: | Size: 479 B |
After Width: | Height: | Size: 386 B |
After Width: | Height: | Size: 448 B |
After Width: | Height: | Size: 210 B |
After Width: | Height: | Size: 157 B |
After Width: | Height: | Size: 442 B |
After Width: | Height: | Size: 217 B |
After Width: | Height: | Size: 219 B |
After Width: | Height: | Size: 148 B |
After Width: | Height: | Size: 452 B |
After Width: | Height: | Size: 220 B |
After Width: | Height: | Size: 132 B |
After Width: | Height: | Size: 132 B |
@ -0,0 +1,115 @@
|
|||||||
|
<?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"/--> <!-- MY FAVOURITE -->
|
||||||
|
<!--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"/-->
|
||||||
|
|
||||||
|
<!-- 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>
|
@ -0,0 +1,104 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
<groupId>com.actionbarsherlock</groupId>
|
||||||
|
<artifactId>library</artifactId>
|
||||||
|
<name>ActionBarSherlock</name>
|
||||||
|
<packaging>apklib</packaging>
|
||||||
|
|
||||||
|
<parent>
|
||||||
|
<groupId>com.actionbarsherlock</groupId>
|
||||||
|
<artifactId>parent</artifactId>
|
||||||
|
<version>3.5.0</version>
|
||||||
|
<relativePath>../pom.xml</relativePath>
|
||||||
|
</parent>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>android</groupId>
|
||||||
|
<artifactId>android</artifactId>
|
||||||
|
<scope>provided</scope>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<sourceDirectory>src</sourceDirectory>
|
||||||
|
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
|
||||||
|
<artifactId>maven-android-plugin</artifactId>
|
||||||
|
<extensions>true</extensions>
|
||||||
|
</plugin>
|
||||||
|
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-javadoc-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<skip>true</skip>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.google.code.maven-replacer-plugin</groupId>
|
||||||
|
<artifactId>maven-replacer-plugin</artifactId>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<phase>process-sources</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>replace</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
<configuration>
|
||||||
|
<ignoreMissingFile>false</ignoreMissingFile>
|
||||||
|
<file>target/generated-sources/r/com/actionbarsherlock/R.java</file>
|
||||||
|
<outputFile>target/generated-sources/r/com/actionbarsherlock/R.java</outputFile>
|
||||||
|
<regex>false</regex>
|
||||||
|
<token>static final int</token>
|
||||||
|
<value>static int</value>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-checkstyle-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<configLocation>${project.basedir}/checkstyle.xml</configLocation>
|
||||||
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<phase>verify</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>checkstyle</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
|
<artifactId>build-helper-maven-plugin</artifactId>
|
||||||
|
<version>1.7</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>attach-artifact</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<artifacts>
|
||||||
|
<artifact>
|
||||||
|
<type>jar</type>
|
||||||
|
<file>${project.build.directory}/${project.build.finalName}.jar</file>
|
||||||
|
</artifact>
|
||||||
|
</artifacts>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</project>
|
@ -0,0 +1,12 @@
|
|||||||
|
# This file is automatically generated by Android Tools.
|
||||||
|
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
|
||||||
|
#
|
||||||
|
# This file must be checked in Version Control Systems.
|
||||||
|
#
|
||||||
|
# To customize properties used by the Ant build system use,
|
||||||
|
# "ant.properties", and override values to adapt the script to your
|
||||||
|
# project structure.
|
||||||
|
|
||||||
|
android.library=true
|
||||||
|
# Project target.
|
||||||
|
target=android-13
|
@ -0,0 +1,14 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
|
||||||
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item android:state_selected="false" android:state_pressed="false" android:state_focused="false" android:drawable="@android:color/transparent" />
|
||||||
|
<item android:state_selected="false" android:state_pressed="false" android:state_focused="true" android:drawable="@color/abs__item_focused" />
|
||||||
|
<item android:state_selected="false" android:state_pressed="true" android:state_focused="false" android:drawable="@color/abs__item_focused" />
|
||||||
|
<item android:state_selected="false" android:state_pressed="true" android:state_focused="true" android:drawable="@color/abs__item_focused" />
|
||||||
|
<item android:state_selected="true" android:state_pressed="false" android:state_focused="false" android:drawable="@android:color/transparent" />
|
||||||
|
<item android:state_selected="true" android:state_pressed="false" android:state_focused="true" android:drawable="@color/abs__item_focused" />
|
||||||
|
<item android:state_selected="true" android:state_pressed="true" android:state_focused="false" android:drawable="@color/abs__item_focused" />
|
||||||
|
<item android:state_selected="true" android:state_pressed="true" android:state_focused="true" android:drawable="@color/abs__item_focused" />
|
||||||
|
<item android:state_selected="true" android:state_pressed="false" android:state_focused="false" android:drawable="@android:color/transparent" />
|
||||||
|
<item android:drawable="@android:color/transparent" />
|
||||||
|
</selector>
|
@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
|
||||||
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item android:state_selected="true" android:color="@android:color/primary_text_dark" />
|
||||||
|
<item android:state_focused="true" android:color="@android:color/primary_text_dark" />
|
||||||
|
<item android:state_pressed="true" android:color="@android:color/primary_text_dark" />
|
||||||
|
<item android:color="@android:color/primary_text_dark" />
|
||||||
|
</selector>
|
@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
|
||||||
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item android:state_selected="true" android:color="#000" />
|
||||||
|
<item android:state_focused="true" android:color="#000" />
|
||||||
|
<item android:state_pressed="true" android:color="#000" />
|
||||||
|
<item android:color="#000" />
|
||||||
|
</selector>
|
After Width: | Height: | Size: 139 B |
After Width: | Height: | Size: 133 B |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 3.4 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 957 B |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 938 B |
After Width: | Height: | Size: 975 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 189 B |
After Width: | Height: | Size: 189 B |
After Width: | Height: | Size: 378 B |
After Width: | Height: | Size: 378 B |
After Width: | Height: | Size: 382 B |
After Width: | Height: | Size: 382 B |
After Width: | Height: | Size: 396 B |
After Width: | Height: | Size: 532 B |