diff options
author | Chris Craik <ccraik@google.com> | 2014-06-27 17:23:47 -0700 |
---|---|---|
committer | Chris Craik <ccraik@google.com> | 2014-07-01 00:16:25 +0000 |
commit | 9a347f199284ad8bcb8a81bfbd306fe0b1a710ba (patch) | |
tree | e1c3bd25127fdd60e4aef3c259a86f79af187870 /api/current.txt | |
parent | 04d0f756782e697a171aebbb35ae86c86b839a27 (diff) | |
download | frameworks_base-9a347f199284ad8bcb8a81bfbd306fe0b1a710ba.zip frameworks_base-9a347f199284ad8bcb8a81bfbd306fe0b1a710ba.tar.gz frameworks_base-9a347f199284ad8bcb8a81bfbd306fe0b1a710ba.tar.bz2 |
Initial replacement of setOutline() with ViewOutlineProvider API
bug:15283203
A View's outline is now managed by its outline provider. This means
the outline is automatically requeried when needed (e.g. drawable
updates or resize), with customizable querying behavior.
Also adds 'isFilled' property to outline, to be used for hinting
shadow overdraw avoidance.
Change-Id: Ie137548fa850f1ff7863ab2f660d05145c2ad11e
Diffstat (limited to 'api/current.txt')
-rw-r--r-- | api/current.txt | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/api/current.txt b/api/current.txt index c962c0a..bc05bef 100644 --- a/api/current.txt +++ b/api/current.txt @@ -10643,9 +10643,11 @@ package android.graphics { ctor public Outline(android.graphics.Outline); method public boolean canClip(); method public boolean isEmpty(); + method public boolean isFilled(); method public void set(android.graphics.Outline); method public void setConvexPath(android.graphics.Path); method public void setEmpty(); + method public void setFilled(boolean); method public void setOval(int, int, int, int); method public void setOval(android.graphics.Rect); method public void setRect(int, int, int, int); @@ -32731,6 +32733,7 @@ package android.view { method public int getNextFocusRightId(); method public int getNextFocusUpId(); method public android.view.View.OnFocusChangeListener getOnFocusChangeListener(); + method public android.view.ViewOutlineProvider getOutlineProvider(); method public int getOverScrollMode(); method public android.view.ViewOverlay getOverlay(); method public int getPaddingBottom(); @@ -32806,6 +32809,7 @@ package android.view { method public void invalidate(int, int, int, int); method public void invalidate(); method public void invalidateDrawable(android.graphics.drawable.Drawable); + method public void invalidateOutline(); method public boolean isAccessibilityFocused(); method public boolean isActivated(); method public boolean isAttachedToWindow(); @@ -33003,7 +33007,8 @@ package android.view { method public void setOnLongClickListener(android.view.View.OnLongClickListener); method public void setOnSystemUiVisibilityChangeListener(android.view.View.OnSystemUiVisibilityChangeListener); method public void setOnTouchListener(android.view.View.OnTouchListener); - method public void setOutline(android.graphics.Outline); + method public deprecated void setOutline(android.graphics.Outline); + method public void setOutlineProvider(android.view.ViewOutlineProvider); method public void setOverScrollMode(int); method public void setPadding(int, int, int, int); method public void setPaddingRelative(int, int, int, int); @@ -33549,6 +33554,12 @@ package android.view { method public abstract void updateViewLayout(android.view.View, android.view.ViewGroup.LayoutParams); } + public abstract class ViewOutlineProvider { + ctor public ViewOutlineProvider(); + method public abstract boolean getOutline(android.view.View, android.graphics.Outline); + field public static final android.view.ViewOutlineProvider BACKGROUND; + } + public class ViewOverlay { method public void add(android.graphics.drawable.Drawable); method public void clear(); |