title: LayoutInflater and onFinishInflate()
body: <p>I am running into the <code>findViewById()</code> returning NULL problem that a lot of them seem to encounter. I understand that the findViewById() should only be called after the View is inflated in <code>onFinishInflate()</code>. My question is - what is view inflation? </p>
  
  <p>In the Activity I call <code>setContentView(R.layout.testview)</code> which should call the View constructor and also calls the onDraw(). So that inflates the view does it not? If so why is there a <code>LayoutInflater</code> and a function to actually inflate the view? In fact in my code <code>onInflateView()</code> is never called even though the whole view is rendered and I was able to interact with the program. That tells me that View inflation is somehow different from calling the View's constructor and <code>onDraw()</code> functions. Can someone explain please?</p>
  
  <p>EDIT: Also I have a custom view that I draw using the onDraw() function. Somehow the onFinishInflate() function is never called for me. What can be the reason for this?</p>
  
  <p>-P</p>