Loading core/java/android/view/View.java +4 −2 Original line number Diff line number Diff line Loading @@ -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) */ Loading core/java/android/view/ViewGroup.java +2 −0 Original line number Diff line number Diff line Loading @@ -1123,6 +1123,8 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager removeFromArray(index); addInArray(child, mChildrenCount); child.mParent = this; requestLayout(); invalidate(); } } Loading core/java/android/view/ViewParent.java +4 −2 Original line number Diff line number Diff line Loading @@ -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 */ Loading Loading
core/java/android/view/View.java +4 −2 Original line number Diff line number Diff line Loading @@ -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) */ Loading
core/java/android/view/ViewGroup.java +2 −0 Original line number Diff line number Diff line Loading @@ -1123,6 +1123,8 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager removeFromArray(index); addInArray(child, mChildrenCount); child.mParent = this; requestLayout(); invalidate(); } } Loading
core/java/android/view/ViewParent.java +4 −2 Original line number Diff line number Diff line Loading @@ -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 */ Loading