Usage of forceLayout(), requestLayout() and invalidate()

sdabet picture sdabet · Dec 13, 2012 · Viewed 96.9k times · Source

I'm a bit confused about the roles of forceLayout(), requestLayout() and invalidate() methods of the View class.

When shall they be called?

Answer

Bartek Lipinski picture Bartek Lipinski · Sep 15, 2014

To better understand answers provided by François BOURLIEUX and Dalvik I suggest you take a look at this awesome view lifecycle diagram by Arpit Mathur: enter image description here