inflate vs findViewById
<p>Suppose I have a simple layout xml like the following:</p>

<p>button.xml:</p>

<pre><code>&lt;Button
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/button01"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content" /&gt;
</code></pre>

<p>Are there any differences in the following calls? and which one should i use?</p>

<pre><code>button = (Button) getLayoutInflater().inflate(R.layout.button, null);
</code></pre>

<p>and</p>

<pre><code>View v = getLayoutInflater().inflate(R.layout.button, null);
button = (Button) v.findViewById(R.id.button01);
</code></pre>
