title: Inflating layout in custom control - how?
body: <p>I've got and idea on how to create custom control here:
  <a href="https://stackoverflow.com/questions/5891153/android-interface-need-suggestions-on-what-widgets-to-use">Android interface - need suggestions on what widgets to use</a></p>
  
  <p>How do I make the SAME but creating control's layout in XML and just inflating it in code? Not like in this example where I have to create each control manually.</p>
  
  <p>My first problem that LinearLayout that used as a base does not support setView() command. Should I extend something else?</p>
  
  <p>EDIT: I found 
  This:
  <a href="http://developer.android.com/guide/topics/ui/custom-components.html" rel="nofollow noreferrer">http://developer.android.com/guide/topics/ui/custom-components.html</a>
  and this:
  <a href="http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/view/List4.html" rel="nofollow noreferrer">http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/view/List4.html</a></p>
  
  <p>Seems like I need COMPOUND CONTROL. I just need little bit of code. How do I inflate control's content from XML? BOth article and sample say I can but HOW?</p>