moving images relatively
<p>i have an image that rotates around an arbitrary point. but i need 3 such images to rotate simultaneously
this is how i try to implement the same</p>

<pre><code>private void rotateLogo(float degrees){
    Matrix matrix1 = new Matrix();
    //int radius = turntable.getWidth()/2;
    double radians = degrees* (Math.PI/180);
    double xcoordinate = 220 * Math.cos(radians)- 60;
    double ycoordinate = 220 * Math.sin(radians) + 50;
    matrix1.postRotate((int)radians, 220, 220);

    // people image
    FrameLayout.LayoutParams linLay  = (FrameLayout.LayoutParams) peopleLogo.getLayoutParams();
    linLay.bottomMargin = (int)ycoordinate + 10;
    linLay.rightMargin = (int)xcoordinate + 10;
    peopleLogo.setImageMatrix(matrix1);
    peopleLogo.setLayoutParams(linLay); 
    rotateLogo2(degrees - 2);
    }

private void rotateLogo2(float degrees){
    double radians = degrees* (Math.PI/180);
    double xcoordinate = 220 * Math.cos(radians)- 60;
    double ycoordinate = 220 * Math.sin(radians) + 50;

    // people image
    FrameLayout.LayoutParams linLay  = (FrameLayout.LayoutParams) serverLogo.getLayoutParams();
    linLay.bottomMargin = (int)ycoordinate + 10;
    linLay.rightMargin = (int)xcoordinate + 10;
    serverLogo.setLayoutParams(linLay);
}  
</code></pre>

<p>in the above code i reduced the angle and rotate the second image using the same code, but the image doesnt rotate, it just disappears on touch.</p>

<p>i also tried to take the layout params of the first image before rotation and apply the same to the second image, but this doesnt work too..</p>

<p>the image disappears on rotation though at times it appears and then disappears</p>

<p>can anyone help me as to where i could be wrong or suggest any other approaches for the same?</p>
