i'm still working on a piece of code, i want to rotate the image clockwise and counter clockwise using buttons, i tried the following code:
case (R.id.clock): matrix.postRotate(90); matrix.postRotate(getDegreesFromRadians(angle), mid.x, mid.y); break; case (R.id.anticlock): float degrees = 0; degrees = degrees-10; matrix.postRotate(degrees); break;
it is working but not the proper way, first i've to press the button then click on imageview to rotate the image. Any help?
i asked the question here too Android Rotate image ontouch but now i want it using buttons