diff options
author | Chet Haase <chet@google.com> | 2013-09-04 10:21:46 -0700 |
---|---|---|
committer | Chet Haase <chet@google.com> | 2013-09-04 11:28:57 -0700 |
commit | cb96db8d144a01aa41ec396247c548d8aa496131 (patch) | |
tree | 3ed1b2fad57ed8a8b94b1acb49dcee891c1747ea /core/java/android/view/ViewParent.java | |
parent | 52c10e94d98e32d977bfd4021136f4c9fa571bd6 (diff) | |
download | frameworks_base-cb96db8d144a01aa41ec396247c548d8aa496131.zip frameworks_base-cb96db8d144a01aa41ec396247c548d8aa496131.tar.gz frameworks_base-cb96db8d144a01aa41ec396247c548d8aa496131.tar.bz2 |
Perform layout and invalidation after bringChildToFront()
Previously, calls to ViewGroup.bringChildToFront() or View.bringToFront()
would need to be followed by calls to requestLayout() and invalidate()
to force the container to redraw with the new child ordering. This
change calls requestLayout() and invalidate() automatically.
Issue #8667065 bringtoTop does not work
Change-Id: Id37ce7a64dead82119e49f7a1b28385cf0d1f20d
Diffstat (limited to 'core/java/android/view/ViewParent.java')
-rw-r--r-- | core/java/android/view/ViewParent.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/java/android/view/ViewParent.java b/core/java/android/view/ViewParent.java index 26596d9..656d756 100644 --- a/core/java/android/view/ViewParent.java +++ b/core/java/android/view/ViewParent.java @@ -148,9 +148,11 @@ public interface ViewParent { /** * Change the z order of the child so it's on top of all other children. * This ordering change may affect layout, if this container - * uses an order-dependent layout scheme (e.g., LinearLayout). This + * uses an order-dependent layout scheme (e.g., LinearLayout). Prior + * to {@link android.os.Build.VERSION_CODES#KEY_LIME_PIE} this * method should be followed by calls to {@link #requestLayout()} and - * {@link View#invalidate()} on this parent. + * {@link View#invalidate()} on this parent to force the parent to redraw + * with the new child ordering. * * @param child The child to bring to the top of the z order */ |