Start import Holo Drawables into AppCompat

This commit imports a number of drawables used for
the ActionBar/Tabs for use on pre-HC devices. Work on
fixing the styles and themes has also started.

Change-Id: I7b132d069eb82210c97aa90eefc11d8f67fef609
Signed-off-by: Chris Banes <chrisbanes@google.com>
Improve Menu List styling on pre-HC devices

This commit improves the styling of the menu panel
shown on < HC devices when using the Action Bar.
We now keep the native black background regardless
of base theme, maintaining the native framework
aesthetic as much as possible.

Change-Id: I049e3f0d78154f1467cc97fee82d4aecc5966034
Signed-off-by: Chris Banes <chrisbanes@google.com>
Remove extraneous logging.

Change-Id: Ibc6580e8410f4a3b2d2590491ad1fb91bed66597
Merge "Improve Menu List styling on pre-HC devices"
Merge "Start import Holo Drawables into AppCompat"
Propogate support menu callbacks to Fragments

This commit adds a new Fragment subtype which contains versions
of the support menu calls. A number of changes to ActionBarActivity
have been needed to make this possible:

- ActionBarActivity and related classes have been moved to the
  android.support.v4.app package.
- FragmentManagerImpl instance creation has been moved to a method
  in both FragmentActivity and Fragment, so that we can return a
  new sub-type: SupportMenuFragmentManager
- FragmentManagerImpl is no longer final
- The compat ActionBar menu set up has been changed so that it happens
  in onPostCreate. This is so that any fragments can be added in onCreate.

Change-Id: Iad4cb121ed99780ea6f207991bd65c2be4b6d69b
Add Support for supportInvalidateOptionsMenu()

This commit adds support for applications to call
supportInvalidateOptionsMenu() and the Action Bar's
contents being changed appropriately.

This commit also changes how onCreatePanelView works
so that it more closely follows how the framework calls
onCreateOptionsMenu, etc.

Change-Id: I0cf356b2883e44b054b87fad9177753b87e7c16d
Signed-off-by: Chris Banes <chrisbanes@google.com>
am 20b97817: am c04bbbd7: am 77ac1399: am c56ba65d: Factor ViewDragHelper out from SlidingPaneLayout

* commit '20b97817bdcee7aed1374664b86d376a9dcb9d86':
  Factor ViewDragHelper out from SlidingPaneLayout
am c9b1613a: am 4d3b5a07: am 5e2013a3: am b9e34c7d: Make ScrollerCompat public/expand it

* commit 'c9b1613aff016e8e29200b2426d24f801c0c6a9b':
  Make ScrollerCompat public/expand it
am 39ca1329: Merge "Add support and better exceptions for Bitmaps with a null config." into jb-mr2-dev

* commit '39ca1329666b390e123c190f663d30c826282b4f':
  Add support and better exceptions for Bitmaps with a null config.
am e2a8c471: am 607f7583: am c30e9f8d: am 3f50aafe: Fix SlidingPaneLayout dim threshold calculation

* commit 'e2a8c471e341b87448e38bff85c8937025f178c7':
  Fix SlidingPaneLayout dim threshold calculation
Move support Menu interfaces + callbacks to v4

This moves the Menu* interfaces used for the ActionBar
into android-support-v4. This allows us to remove
ActionBarFragment and related hackery.

This commit just keeps us at the same level of functionality,
but is a cleaner implementation. A future feature would be
to enable the use of the support Menu when not using
ActionBarActivity.

Change-Id: I3de7695d4db0b9626f2bc9ed49ad0528146dc093
Signed-off-by: Chris Banes <chrisbanes@google.com>
Fix Conflict with ActionBarSherlock

We've had to rename getSupportMenuInflater() to
getCompatMenuInflater() for now to fix the build.

This should be reverted before launch!

Change-Id: I759e436549b9d3cc22e84650a0f8fafd599412f3
Signed-off-by: Chris Banes <chrisbanes@google.com>
Fix NPE when using support menu with Fragment

This should have been included in change:
I3de7695d4db0b9626f2bc9ed49ad0528146dc093 but
it seems to have been missed.

Change-Id: I76be4eb4f327bed6f9cb9a3ef8b1370d841bab2f
Signed-off-by: Chris Banes <chrisbanes@google.com>
Fix List Navigation on pre-HC devices

This commit fixes the use of list navigation on
the action bar. To make this possible:

- Imported Spinner and parents from ICS source.
- Imported a number of Holo resources, roughly 10
  drawables per density. This wasn't ideal but our
  drawable-*dpi dirs still only amount to ~40KB.

Change-Id: Ib8a9c1b9bd86cc8470b0f765ffa7a26ae30bac40
Signed-off-by: Chris Banes <chrisbanes@google.com>
Optimisations to Menu preparation (pre-HC)

This commit contains two optimisations/fixes
concerned with the handling of Menu for pre-HC devices:

- Changed the flow of Menu creation and preparation so
  so that Menu.stopDispatchingItemsChanged() can be used
- Changed ListMenuPresenter so that it does not show
  anything where there are no non-action items.

Change-Id: Ic2c2e2e6b2578359bf3dc49347564628f96328d7
Signed-off-by: Chris Banes <chrisbanes@google.com>
Reconcile with jb-mr2-release - do not merge

Change-Id: Id7183dcfa3f80a1691e7ba70aa27a57fc26d6739
am 5833601e: (-s ours) Reconcile with jb-mr2-release - do not merge

* commit '5833601eee8bed9ffea5fcf897c98307608243c3':
  Fix system library search path.
am 5f86984b: am 2a589516: am 9b8d1242: am 6580cf4b: Fix ViewDragHelper/SlidingPaneLayout bugs

* commit '5f86984b6bf2b136f57fb203ab4f29dc7a60277e':
  Fix ViewDragHelper/SlidingPaneLayout bugs
am 25f5a070: am 5f86984b: am 2a589516: am 9b8d1242: am 6580cf4b: Fix ViewDragHelper/SlidingPaneLayout bugs

* commit '25f5a070bfeb2cc453a748bcd17042ee9908a49d':
  Fix ViewDragHelper/SlidingPaneLayout bugs