title: Please Explain onFinishLayout sample code?
body: <p>I have made a class file that extends linearlayout and in one of the example of this I seen following code that I cannot understand whats its need and important.</p>
  
  <pre><code>protected void onFinishInflate() 
  {
      super.onFinishInflate();
      ((Activity)getContext()).getLayoutInflater().inflate(R.layout.twotext, this);
      setItems();//this is my method that i have declared below this code
  }
  </code></pre>