diff options
| author | Dianne Hackborn <hackbod@google.com> | 2009-09-30 22:35:40 -0700 |
|---|---|---|
| committer | Dianne Hackborn <hackbod@google.com> | 2009-09-30 23:21:02 -0700 |
| commit | 29e4a3c566f435c32f0b95e4ac8e8b33cac6faba (patch) | |
| tree | 75b4244d2616aa5513991d15f721ab3b21f0d333 /core/java/android/view | |
| parent | d9b6f14a6926dce7ad3d98e6e30b503c69c904c0 (diff) | |
| download | frameworks_base-29e4a3c566f435c32f0b95e4ac8e8b33cac6faba.zip frameworks_base-29e4a3c566f435c32f0b95e4ac8e8b33cac6faba.tar.gz frameworks_base-29e4a3c566f435c32f0b95e4ac8e8b33cac6faba.tar.bz2 | |
Update from API review.
Change-Id: I16b1c566f91167aac9615ac59dd297a154c828ea
Diffstat (limited to 'core/java/android/view')
| -rw-r--r-- | core/java/android/view/SurfaceView.java | 21 | ||||
| -rw-r--r-- | core/java/android/view/View.java | 1 |
2 files changed, 21 insertions, 1 deletions
diff --git a/core/java/android/view/SurfaceView.java b/core/java/android/view/SurfaceView.java index 356f55a..ca5e1de 100644 --- a/core/java/android/view/SurfaceView.java +++ b/core/java/android/view/SurfaceView.java @@ -289,6 +289,23 @@ public class SurfaceView extends View { } /** + * Control whether the surface view's surface is placed on top of another + * regular surface view in the window (but still behind the window itself). + * This is typically used to place overlays on top of an underlying media + * surface view. + * + * <p>Note that this must be set before the surface view's containing + * window is attached to the window manager. + * + * <p>Calling this overrides any previous call to {@link #setZOrderOnTop}. + */ + public void setZOrderMediaOverlay(boolean isMediaOverlay) { + mWindowType = isMediaOverlay + ? WindowManager.LayoutParams.TYPE_APPLICATION_MEDIA_OVERLAY + : WindowManager.LayoutParams.TYPE_APPLICATION_MEDIA; + } + + /** * Control whether the surface view's surface is placed on top of its * window. Normally it is placed behind the window, to allow it to * (for the most part) appear to composite with the views in the @@ -298,8 +315,10 @@ public class SurfaceView extends View { * * <p>Note that this must be set before the surface view's containing * window is attached to the window manager. + * + * <p>Calling this overrides any previous call to {@link #setZOrderMediaOverlay}. */ - public void setOnTop(boolean onTop) { + public void setZOrderOnTop(boolean onTop) { mWindowType = onTop ? WindowManager.LayoutParams.TYPE_APPLICATION_PANEL : WindowManager.LayoutParams.TYPE_APPLICATION_MEDIA; } diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java index 048f857..7d821b5 100644 --- a/core/java/android/view/View.java +++ b/core/java/android/view/View.java @@ -8348,6 +8348,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility /** * This needs to be a better API (NOT ON VIEW) before it is exposed. If * it is ever exposed at all. + * @hide */ public void onCloseSystemDialogs(String reason) { } |
