Circle Rotation onTouch Only works when clicked once after that it does not do anything.
here is my code:
setOnTouchListener(new OnTouchListener() {
public boolean onTouch(View v, MotionEvent event) {
int n = 0;
postInvalidate();
for(int i=0; i<360; i++){
setRotationX(n + 1);
}
forceLayout();
i hope someone can help me.
how can i look the code so it works multiple times?
If you use the goodm solution, you should to add in your manifest this:
This is for ICS and pre-ICS.