Can I instantiate/inflate a View from XML?
<p>I have a Button View. Would I have to wrap it in a Layout in order to be able to inflate instances of it in an Activity? Is there a similar pattern for View's, so that I can set it up once, declaratively, and create multiple instances of it?</p>

<p>Thanks.</p>

<p><strong>Edit</strong></p>

<p>I think I'm missing something about layouts. Are they meant to be declared as templates that can be instantiated <em>anywhere</em>? Or can they only be used within another specific layout?</p>

<p>Example:</p>

<p>I have a ScrollView Layout defined in contents.xml. It is totally on its own, not included by any other layouts. In my activity, setContentView is called on my main layout. Is it possible for me to instantiate a copy of contents.xml? Do I need to change the "contentView" somehow?</p>
