Adding buttons on xml file other than main
<p>I have two xml files in my application - <strong>main.xml</strong> and <strong>options.xml</strong>.</p>

<p>In both of them I use buttons. The problem is, that while interacting with the buttons in <strong>main.xml</strong>, I cannot do that with <strong>options.xml</strong>: if I write </p>

<pre><code>Button b = (Button)findViewById(R.id.b1);
</code></pre>

<p>, b is going to be null. What is the cause of this problem and how do I fix it?</p>

<p>Thank you in advance.</p>
