Click here to Skip to main content
15,897,273 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

i m trying to develop an application that has a rotary dial like image and i need to rotate it on touch.

i tried searching but got a lot of complex equations which i cant figure out :(

can anybody help me :(
Posted

This article can be adapted to do what you want; Simple Gestures on Android[^].

Hope this helps,
Fredrik
 
Share this answer
 
i am still trying with the above problem..
in the Code below the PostTranslate does not create any change to the bitmap..
kindly help as to where i am goin wrong :'(

Java
Matrix nwMat = new Matrix();
nwMat.postTranslate(200,200);
        Bitmap redrawnBitmap1 = Bitmap.createBitmap(bitmap1, 0, 0, bitmap1.getWidth(), bitmap1.getHeight(), nwMat, true);
        ServerImage.setImageBitmap(redrawnBitmap1);  
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900