Android examples for User Interface:Layout
request Layout Parent View
//package com.java2s; import android.view.View; import android.view.ViewParent; public class Main { public static void requestLayoutParent(View view, boolean isAll) { ViewParent parent = view.getParent(); while (parent != null && parent instanceof View) { if (!parent.isLayoutRequested()) { parent.requestLayout();// w w w .j av a 2s .c o m if (!isAll) { break; } } parent = parent.getParent(); } } }