title: FindViewById in different layout
body: <p>I am building an android app and I am accssing the UI elements with the following method :</p>
  
  <pre><code>FindViewById
  </code></pre>
  
  <p>The thing is it looks like I cannot access elements that are not in the currently opened layout. <br>
  Is that possible ? If so, how can I access elements that are not in the currently loaded layout.</p>
  
  <pre><code>SetContentView (Resource.Layout.CameraLayout);
  
  Button button1 = FindViewById&lt;Button&gt; (Resource.Id.firstButton);
  Button button2 = FindViewById&lt;Button&gt; (Resource.Id.secondButton);
  
  button1.Click += (s,e) =&gt; {//do stuff}; // In CameraLayout layout.
  button2.Click += (s,e) =&gt; {//do stuff}; // Not in CameraLayout layout.
  </code></pre>
  
  <p>This line will throw the null exception : <code>button2.Click += (s,e) =&gt; {//do stuff};</code></p>
  
  <p><strong>But if I change it to</strong> :</p>
  
  <pre><code>SetContentView (Resource.Layout.AnotherLayout);
  
  Button button1 = FindViewById&lt;Button&gt; (Resource.Id.firstButton);
  Button button2 = FindViewById&lt;Button&gt; (Resource.Id.secondButton);
  
  button1.Click += (s,e) =&gt; {//do stuff}; // Not AnotherLayout layout.
  button2.Click += (s,e) =&gt; {//do stuff}; // In AnotherLayout layout.
  </code></pre>
  
  <p>This line will throw the null exception : <code>button1.Click += (s,e) =&gt; {//do stuff};</code> </p>
  
  <p>So I can only access elements form the currently loaded layout. I highly doubt that there is no way to access the other elements but I still can't find how. </p>