title: Callback after all child Views from XML have been added to ViewGroup?
body: <p>I was writing a custom <code>ViewGroup</code> and came across the following problem:</p>
  
  <p>The <code>ViewGroup</code> should be usable by specifying properties in XML only.
  However, I want to do some internal initialization in code after the <code>ViewGroup</code> has been created and all its child <code>View</code>s from XML have been added (that is, when the layout inflator has added all the child <code>View</code>s of a <code>ViewGroup</code> specified in XML).</p>
  
  <p>All I found related to this are recommendations to use <code>getViewTreeObserver().addOnGlobalLayoutListener(...)</code>.
  However, this is called at least after each child <code>View</code> is added and also after resuming an app etc. So it does not even make it possible to detect the moment when all child <code>View</code>s have been added.</p>
  
  <p>Is there a method called after all child <code>View</code>s have been added to a <code>ViewGroup</code>?</p>
  
  <p>Related: <a href="https://stackoverflow.com/q/17334078/905686">When are child views added to Layout/ViewGroup from XML</a></p>