title: After rotating a linearlayout, the onclick events do not change position after the rotation
body: <p>I have a vertical linearlayout with three clickable imageviews within the linearlayout. When i rotate the linearlayout by 90 degrees using simple animation the problem arises. The imageviews are rotated correctly but the onclick events for the imageviews are not rotated along with the linearlayout and remain in the original position as before the animation. </p>
  
  <p>Below is my main java code</p>
  
  <pre><code>       westplayer = (LinearLayout) findViewById(R.id.linearLayout_west);
  
          // Create an animation instance
      Animation an = new RotateAnimation(0.0f, 180.0f, 32, 180);
  
      // Set the animation's parameters
      an.setDuration(0);               // duration in ms
      an.setRepeatCount(0);                // -1 = infinite repeated
      an.setRepeatMode(Animation.REVERSE); // reverses each repeat
      an.setFillAfter(true);               // keep rotation after animation 
  
          // Apply animation to linearlayout
      westplayer.setAnimation(an); 
  </code></pre>
  
  <p>The code above handles the animation part. The code below follows the animation and is supoosed to update the layout positions but is not working for me. </p>
  
  <pre><code>        // Update Layout 
            int top=westplayer.getTop();
        int bottom=westplayer.getBottom();
        int left=westplayer.getLeft();
        int right=westplayer.getRight();
        westplayer.layout(left, top , right, bottom );
  </code></pre>
  
  <p>The xml is as follows:</p>
  
  <pre><code>     &lt;LinearLayout
      android:id="@+id/linearLayout_west"
      android:layout_width="42dp"
      android:layout_height="250dp"
      android:layout_alignParentLeft="true"
      android:layout_below="@+id/linearLayout_north"
      android:duplicateParentState="false"
      android:gravity="center"
      android:orientation="vertical" &gt;
  
      &lt;ImageView
          android:id="@+id/imageViewW1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:src="@drawable/spades_14"
  
           /&gt;
  
      &lt;ImageView
          android:id="@+id/imageViewW2"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:src="@drawable/spades_14"
          android:layout_marginTop="-15dp" 
          /&gt;
  
      &lt;ImageView
          android:id="@+id/imageViewW3"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:src="@drawable/spades_14"
          android:layout_marginTop="-15dp" 
         /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>I have got the update layout code from <a href="https://stackoverflow.com/questions/11339830/linearlayout-onclick-does-not-translate-after-translateanimation">this</a> and also found another solution that i have also tried <a href="https://stackoverflow.com/questions/7012004/the-listener-after-an-animation-in-android-doesnt-work">this</a> and still no positive results. I need this to work for <strong>API 10</strong>. Any help is much appreciated </p>