Example usage for android.view ViewParent requestLayout

List of usage examples for android.view ViewParent requestLayout

Introduction

In this page you can find the example usage for android.view ViewParent requestLayout.

Prototype

public void requestLayout();

Source Link

Document

Called when something has changed which has invalidated the layout of a child of this view parent.

Usage

From source file:Main.java

public static void requestLayoutParent(View view, boolean isAll) {
    ViewParent parent = view.getParent();
    while (parent != null && parent instanceof View) {
        if (!parent.isLayoutRequested()) {
            parent.requestLayout();
            if (!isAll) {
                break;
            }//w ww  .j  a va  2 s.  c o  m
        }
        parent = parent.getParent();
    }
}