title: ImageButton from child layout onClick method not working
body: <p>I have ImageButton on my View that is not working (method not called) when I try to click on it, but it is working if I click using the emulator keyboard. adb shell logcat doesn't print anything.</p>
  
  <p>my main.xml layout:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;merge xmlns:android="http://schemas.android.com/apk/res/android"&gt;  
      &lt;LinearLayout   
          android:id="@+id/btn"   
          android:orientation="vertical"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          &gt;
          &lt;ImageButton            
              android:layout_height="wrap_content"
              android:layout_width="wrap_content"
              android:layout_gravity="center_horizontal"  
              android:src="@drawable/ic_btn"
              android:clickable="true"
              android:onClick="click"         
           /&gt;
           &lt;TextView
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_gravity="center_horizontal"
              android:text="Text" /&gt;
      &lt;/LinearLayout&gt;                   
  &lt;/merge&gt;
  </code></pre>
  
  <p>the click method in activity:</p>
  
  <pre><code>public void click(View view) {
      tv.setText("clicked");
  }
  </code></pre>
  
  <p>And if I put the ImageButton as direct child element of <code>&lt;merge&gt;</code>, the click method is working. My build target is Android 2.2.
  So, what is wrong here? </p>
  
  <hr>
  
  <p><strong>UPDATE</strong> I just know that this is because I have animation on the button, and location of the button is not updated after animation end. I didn't include that previously because I didn't know if it is related.</p>