title: Button click event not fire properly in <include> tag in ANDROID
body: <p>I have three XML files are </p>
  
  <p>1) Header
  2) FirstActivity
  3) SecondActivity.</p>
  
  <p><strong>header.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:orientation="horizontal"
  android:layout_width="match_parent"
  android:layout_height="match_parent"&gt;
  &lt;Button 
  android:text="Button 1" 
  android:id="@+id/button1" 
  android:layout_width="wrap_content" 
  android:layout_height="wrap_content"
  android:onClick="first1"
  &gt;
  &lt;/Button&gt;
  
  &lt;Button 
  android:text="Button 2" 
  android:id="@+id/button2" 
  android:layout_width="wrap_content" 
  android:layout_height="wrap_content"
  android:onClick="second"
  &gt;
  &lt;/Button&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p><strong>firstactivity.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout      xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  &gt;
  &lt;include layout="@layout/headerfile"/&gt;
  
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:orientation="vertical"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:layout_marginTop="100dip"
  &gt;
  &lt;TextView
  android:id="@+id/textView2"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:text="Phone Detail"
  android:textAppearance="?android:attr/textAppearanceLarge" /&gt;
  &lt;TextView
  android:id="@+id/simid"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:textAppearance="?android:attr/textAppearanceMedium" /&gt;
  &lt;TextView
  android:id="@+id/imeino"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:textAppearance="?android:attr/textAppearanceMedium" /&gt;
  
  &lt;TextView
  android:id="@+id/phoneno"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:textAppearance="?android:attr/textAppearanceMedium" /&gt;  
  &lt;/LinearLayout&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p><strong>HeaderActivity.java</strong></p>
  
  <pre><code>public class HeaderActivity extends Activity {
  Button b1,b2;
  /** Called when the activity is first created. */
  @Override
  public void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.headerfile);
  
  
  b1 = (Button)findViewById(R.id.button1) ;
  b2 = (Button)findViewById(R.id.button2) ;
  
  } //onCreate over
  
  public void first1(View v)
  {
  Intent i =new Intent(this,firstactivity.class);
  startActivity(i);
  finish();       
  }
  
  public void second(View v)
  {
  Intent i1 =new Intent(this, secondactivity.class);
  startActivity(i1);  
  finish();
  }
  }
  </code></pre>
  
  <p>But I got ERROR every time …</p>
  
  <p><strong>Log-cat :</strong> </p>
  
  <pre><code>ERROR/AndroidRuntime(328): java.lang.IllegalStateException: Could not find a method first1
  (View) in the activity class com.contactDetails.ContactDetailsActivity for onClick handler on view class 
  android.widget.Button with id 'button1'
  </code></pre>