diff options
| author | Adam Powell <adamp@google.com> | 2011-03-29 10:38:16 -0700 |
|---|---|---|
| committer | Adam Powell <adamp@google.com> | 2011-04-19 13:49:39 -0700 |
| commit | 696cba573e651b0e4f18a4718627c8ccecb3bda0 (patch) | |
| tree | ac35e215420949d0d5541379e5c127dd88eea08f /api | |
| parent | 9bf2d9e13c99486779fb40eac8c0f3079339382f (diff) | |
| download | frameworks_base-696cba573e651b0e4f18a4718627c8ccecb3bda0.zip frameworks_base-696cba573e651b0e4f18a4718627c8ccecb3bda0.tar.gz frameworks_base-696cba573e651b0e4f18a4718627c8ccecb3bda0.tar.bz2 | |
Refactor menu internals.
In the old world, MenuBuilder and MenuItemImpl were responsible for
generating views for any presentation of a menu. MenuBuilder needed to
know any types and resources involved, and the implied caching
semantics did not work well for menus presented within AdapterViews.
In the new world, the MenuPresenter interface takes over the
responsibility of generating views or adapters for menu
items. MenuBuilder/MenuItemImpl still provide extra metadata tracking
used by these presenters. Mutiple presenters may be active for a
single menu at a time. All of this remains internal framework
implementation details.
BaseMenuPresenter provides a simple base for presenters that treats
the host MenuView more like an AdapterView. This allows for less
rebuilding of views when items are added/removed.
Callbacks have been restructured. Calls that relate to the menu itself
are still handled by MenuBuilder.Callback, but calls related to a
specific presentation of a menu are handled by MenuPresenter.Callback
objects attached to a MenuPresenter.
Also add API to programmatically set divider options for LinearLayout
and hidden API so that ActionBarView can have finer-grained control
over divider placement.
Change-Id: I2265b86a084279822908021aec20dfbadc1bb56b
Diffstat (limited to 'api')
| -rw-r--r-- | api/current.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/api/current.txt b/api/current.txt index 975444e..1c7c11b 100644 --- a/api/current.txt +++ b/api/current.txt @@ -24069,6 +24069,7 @@ package android.widget { ctor public LinearLayout(android.content.Context, android.util.AttributeSet); ctor public LinearLayout(android.content.Context, android.util.AttributeSet, int); method public int getBaselineAlignedChildIndex(); + method public int getDividerPadding(); method public int getOrientation(); method public int getShowDividers(); method public float getWeightSum(); @@ -24078,6 +24079,7 @@ package android.widget { method public void setBaselineAligned(boolean); method public void setBaselineAlignedChildIndex(int); method public void setDividerDrawable(android.graphics.drawable.Drawable); + method public void setDividerPadding(int); method public void setGravity(int); method public void setHorizontalGravity(int); method public void setMeasureWithLargestChildEnabled(boolean); |
