• Home
  • History
  • Annotate
  • only in /frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/
History log of /frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
592df2e7552ba6902c9750ab8453850fc9e30334 26-Jul-2013 Chris Banes <chrisbanes@google.com> Honor checkableBehaviour flag on ICS+

We don't currently honor the checkableBehaviour flag on
ICS+. This is due to the menu inflater not calling
MenuItemImpl.setExclusiveCheckable().

This CL makes BaseWrapper public @hide'n so that we
can call setExclusiveCheckable via reflection on the
wrapped framework Menu Item.

https://code.google.com/p/android/issues/detail?id=57990

Change-Id: I3a58ec96bcee3829e0091e2882152228ee165732
enuItemWrapperICS.java
1582fcfe4f727e3547ed17a2df3067234c9a4141 17-Jul-2013 Chris Banes <chrisbanes@google.com> Fix ABC's ShareActionProvider use of LinearLayout

- Renamed LinearLayout ICS' internal methods name
to not conflict with private methods added in v11+.
- Fixed ActionMenuView to make use of LinearLayoutICS'
callbacks (as per framework).
- Changed ShareActionProvider to use framework provided
LinearLayout on ICS+.

Bug: 9885077
Change-Id: Icd42b87a4f9d8f3d5c2200ca705f43c68c0400dc
ctionMenuView.java
2e21b5e22c320fd7e6af86a7cc05b4b11d7a0f64 11-Jun-2013 Chris Banes <chrisbanes@google.com> Fix ABC CollapsibleActionViews on ICS+

- Fix ActionBarCompat CollapsibleActionView callbacks
not being propogated on ICS+.
- Moved support version of CollapsibleActionView from
internal to public package.
- Fix IME not showing on SearchView when expanded

Bug: 9382915

Change-Id: I17851985c014f8c56e4adaa225354a023d3177fa
Signed-off-by: Chris Banes <chrisbanes@google.com>
enuItemWrapperICS.java
89208232f3b5d1451408d787872504a190bc7ee0 31-May-2013 Chris Banes <chrisbanes@google.com> Remove Native Action Bar support for Honeycomb

- Tweaked config & bool resources so that large & xlarge
match the width qualified resources as much as possible.
- Added CompatTextView which implements textAllCaps for
all platforms.
- Added @hide to internal classes which it was missing

Bug: 9218989

Change-Id: I038d8ab7261d6c1d5cb039cd17903a43d09183c2
Signed-off-by: Chris Banes <chrisbanes@google.com>
ctionMenuItemView.java
ctionMenuPresenter.java
aseMenuPresenter.java
xpandedMenuView.java
istMenuItemView.java
istMenuPresenter.java
enuBuilder.java
enuItemWrapperHC.java
enuItemWrapperICS.java
enuPresenter.java
enuWrapperFactory.java
enuWrapperHC.java
enuWrapperICS.java
ubMenuBuilder.java
ubMenuWrapperHC.java
ubMenuWrapperICS.java
a6fc0bcd9e65ed20193976cd02500152bb39a163 23-May-2013 Chris Banes <chrisbanes@google.com> Emulate overridesItemVisibility() for ICS

This commit tries to emulate ActionProvider's
overridesItemVisibility() on ICS. Bug: 8911267

Change-Id: Iaefba21287863a1a51d7f35dc1a3d9d6a2b4ee86
Signed-off-by: Chris Banes <chrisbanes@google.com>
enuItemWrapperICS.java
enuItemWrapperJB.java
07a07ce59efb770e9fb9ca53a0133e5e64a63bbc 23-May-2013 Chris Banes <chrisbanes@google.com> Rename remaining resources to use abc_ prefix

Bug: 9100364

Change-Id: I93332ecaf1e8d5234acf005e263c6c0309e6413f
Signed-off-by: Chris Banes <chrisbanes@google.com>
ctionMenuItemView.java
ctionMenuPresenter.java
enuBuilder.java
enuPopupHelper.java
d713f4f0643a5f6409b431f643f1ad25dba6c22f 21-May-2013 Chris Banes <chrisbanes@google.com> Fix ActionProvider.isVisible() #8911267

- Hooked up Menu Item visibility with ActionProvider
visibility for v9 and below.
- Cleaned up wrapper code around ActionProvider:
- Move base ActionProviderWrapper code from HC to ICS
- Hooked up ActionProviderWrapperJB properly

Change-Id: Ib708f285784dbf0704989a1b258b96900c8b5e15
enuItemImpl.java
enuItemWrapperHC.java
enuItemWrapperICS.java
enuItemWrapperJB.java
6e6abe6eb358db4c3932752249c8ac61dd3dab21 08-May-2013 Jeff Brown <jeffbrown@google.com> Fix several issues with menu wrappers.

The menu wrappers were being created for the wrong version due to
an upside-down if tree in the menu wrapper factory.

The action provider wrapper code was duplicated and failed to
propagate the visibility changed event correctly. The new JB
API bits were also mixed into the ICS bits.

Added @Override in a few places where it was absent.

Renamed MenuWrapper to MenuWrapperFactory to avoid confusion
in the subtype relation between it and the actual wrapper types.

Simplified the wrapper hierarchy by moving construction of
support wrapper types into this factory instead of having to
override individual createXXX methods on each wrapper type.
This means we can get rid of several types, a possible diamond
inheritance hierarchy involving MenuWrapperHC and SubMenuWrapperHC
and their subtypes and the maintenance hassle of having to update
four places whenever a new version specific subtype needs to
be added.

Added a SupportSubMenu interface type to complete the set
of defined interface types.

Fixed handling of null listeners in a few places.

Bug: 8175766
Change-Id: I8c164893a6025308751a8c05671945874fe047c4
aseMenuWrapper.java
enuBuilder.java
enuItemImpl.java
enuItemWrapperHC.java
enuItemWrapperICS.java
enuItemWrapperJB.java
enuWrapper.java
enuWrapperFactory.java
enuWrapperHC.java
enuWrapperICS.java
ubMenuWrapperHC.java
ubMenuWrapperICS.java
34452b0d1034da026b8a1d6fe2fe4399844379d6 07-May-2013 Adam Powell <adamp@google.com> Support ActionProvider functionality from API 16

Add the API 16 ActionProvider methods regarding visibility changes to
appcompat.

Fix a previously introduced bug inflating ActionProviders.

Change-Id: Ieff63683af4515eaacd0a25fddd168a7e71006cd
enuItemImpl.java
enuItemWrapperHC.java
enuItemWrapperICS.java
30837f1095c803f332f4a1c3f0917c8afdd50156 24-Apr-2013 Adam Powell <adamp@google.com> API changes for support action bar menus

Refactor support action bar to use standard framework menu interfaces
instead of additional interfaces. This simplifies the API and results
in fewer disjoint callbacks which could make life difficult for
library authors.

SupportMenu/SupportMenuItem are now private implementation details of
the support lib rather than interfaces used directly by app
developers. Developers must use standard support shim *Compat classes
to access new methods, and these shims are now aware of
SupportMenu/SupportMenuItem and will do the right thing.

Fix up a few other general issues and bugs.

Change-Id: I833dce76485741b680bef84c1c0ed8d81ea57616
ctionMenuItem.java
ctionMenuItemView.java
ctionMenuPresenter.java
aseMenuWrapper.java
enuBuilder.java
enuItemImpl.java
enuItemWrapperHC.java
enuItemWrapperICS.java
enuPopupHelper.java
enuPresenter.java
enuView.java
enuWrapper.java
enuWrapperHC.java
enuWrapperICS.java
ubMenuBuilder.java
ubMenuWrapperHC.java
ubMenuWrapperICS.java
b79bd8bd1afdf165068ddafdc5fa0667f7ec4a70 26-Apr-2013 Jeff Brown <jeffbrown@google.com> Fix JavaDoc in appcompat.

Bug: 8175766
Change-Id: I4920f42f23c9623e02ba4b06466c093e2841ccf0
xpandedMenuView.java
enuBuilder.java
enuPresenter.java
9a39a1a106e7cbe6daf6e246dab7e89bbecbab38 11-Apr-2013 Chris Banes <chrisbanes@google.com> Add Dividers to Action Bar and Tabs

This commit adds dividers to items on the Action Bar
and Tabs:

- Created LinearLayoutICS which extends from the
standard LinearLayout, and adds support for divider.
- Added relevant attributes for divider support.
- Remove unused drawable.
- Renamed divider drawables to match holo naming.

This commit also fixes the bug that we had some ICS
attributes set in the v7 resources. While it built
fine, Eclipse showed errors.

Change-Id: Ib23ede896b9e87180889bf49a562b4926a9a8838
Signed-off-by: Chris Banes <chrisbanes@google.com>
ctionMenuView.java
ee7c9fb199e9b9af8d40a1f9e27d85465acf8301 10-Apr-2013 Chris Banes <chrisbanes@google.com> Rename Resources to have abc_ prefix

This commit renames all exposed resources to
have the abc_ prefix.

This is so that ActionBarCompat's resources
do not interfere with any Holo resources that
devs may import themsevles. This is also
if devs use tools such as 'Action Bar Style
Generator'.

This allow devs to quick see which resources
are from ABC.

Change-Id: Ib9597110469c94ee3b70c9e89d0640033aa477f9
Signed-off-by: Chris Banes <chrisbanes@google.com>
ctionMenuPresenter.java
istMenuItemView.java
istMenuPresenter.java
enuDialogHelper.java
enuPopupHelper.java
d900fe072335d488f883585e3f686ef955d1ccc9 08-Apr-2013 Chris Banes <chrisbanes@google.com> Scrub AppCompat Code and Resources

This commit removes TODOs, commented out code
and other dead code from AppCompat.

Change-Id: I7786b68465630bc7bdda181e3b121478ef20fd73
Signed-off-by: Chris Banes <chrisbanes@google.com>
ctionMenuItemView.java
ctionMenuPresenter.java
enuItemWrapperHC.java
a2b9cdba583eed47107c1c97bd555c9a181860c2 27-Mar-2013 Chris Banes <chrisbanes@google.com> Fix List Menu Text Colour

This commit fixes a few things around the text
colour on the list menu:

- Combats against <v9 and v9-10 different panel
backgrounds. We now use TextAppearance.Widget.IconMenu.Item
as the base theme and increase text size.
- Fix Sub Menu text colour by using primary_text_light
instead of attr text colours (as the bg is always light
<v11).

Change-Id: I27bc6090ce4e5f428482a0a55d842647d49b8d9f
Signed-off-by: Chris Banes <chrisbanes@google.com>
enuDialogHelper.java
e6072e2d918169bd827cf7431347fb648124c227 21-Mar-2013 Jeff Brown <jeffbrown@google.com> Clean up action bar support library.

Small initial refactoring. More to come.

Added a SearchActionProvider to make it easy to embed
SearchViewCompat within a support library action bar.

Bug: 8175766
Change-Id: I4ddb16d8fce5d638a76027446128f7462c2095ce
enuItemWrapperHC.java
da10fdd1400ecfd8d7f2e55651dd528d0614dfc5 19-Mar-2013 Jeff Brown <jeffbrown@google.com> Move appcompat library to v7 package.

Moved most of the options menu related functionality out of v4
support lib into appcompat where it belongs. These two libraries
have very different design philosophies and it is important that
they remain untangled.

The support action bar options menu is broken by this change but
will be fixed in later patches after some refactoring to more
fully express the facade-like nature of the appcompat library.

Collapsed the appcompat eclair, honeycomb and ics folders into
one src folder because the layering did not make any sense.
All of these folders were providing portions of the API.
The layering will be reconstructed and improved in later patches.

Moved implementation types into an internal package within appcompat
to prevent them from leaking into the API.

Changed the base package name to android.support.v7, similar
to the gridlayout support lib.

Bug: 8175766
Change-Id: I538cbe08310e63e96a2a9fed0b8636eeda530f2c
ctionMenuItem.java
ctionMenuItemView.java
ctionMenuPresenter.java
ctionMenuView.java
aseMenuPresenter.java
aseMenuWrapper.java
aseWrapper.java
xpandedMenuView.java
istMenuItemView.java
istMenuPresenter.java
enuBuilder.java
enuDialogHelper.java
enuItemImpl.java
enuItemWrapperHC.java
enuItemWrapperICS.java
enuPopupHelper.java
enuPresenter.java
enuView.java
enuWrapper.java
enuWrapperHC.java
enuWrapperICS.java
ubMenuBuilder.java
ubMenuWrapperHC.java
ubMenuWrapperICS.java