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/View.java | |
| parent | 52c10e94d98e32d977bfd4021136f4c9fa571bd6 (diff) | |
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/View.java')
| -rw-r--r-- | core/java/android/view/View.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java index 5b279ec79897..747b3ee7dc5a 100644 --- a/core/java/android/view/View.java +++ b/core/java/android/view/View.java @@ -8836,9 +8836,11 @@ public class View implements Drawable.Callback, KeyEvent.Callback, /** * Change the view's z order in the tree, so it's on top of other sibling * views. This ordering change may affect layout, if the parent 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 the parent. + * {@link View#invalidate()} on the view's parent to force the parent to redraw + * with the new child ordering. * * @see ViewGroup#bringChildToFront(View) */ |
