M
moppi1972
Neues Mitglied
- 0
Hallo
ich verstehe nicht warum folgende Schleife immer nur einmal ausgeführt wird wenn der Button gedrückt wird. Egal ob ich sie auf <,> oder == setze.
public void onClick(View v) {
// TODO Auto-generated method stub
umdrehung = 1;
do{
ImageView ivRotate = (ImageView)(findViewById(R.id.rolett));
RotateAnimation aRotate = new RotateAnimation(0,360,
ivRotate.getWidth() / 2, ivRotate.getHeight() / 2);
aRotate.setDuration(3000);
ivRotate.startAnimation(aRotate);
umdrehung++;
}while(umdrehung <10);
}
} );
Kann mir bitte jemand sagen warum????????
Viele Grüße
Moppi
ich verstehe nicht warum folgende Schleife immer nur einmal ausgeführt wird wenn der Button gedrückt wird. Egal ob ich sie auf <,> oder == setze.
public void onClick(View v) {
// TODO Auto-generated method stub
umdrehung = 1;
do{
ImageView ivRotate = (ImageView)(findViewById(R.id.rolett));
RotateAnimation aRotate = new RotateAnimation(0,360,
ivRotate.getWidth() / 2, ivRotate.getHeight() / 2);
aRotate.setDuration(3000);
ivRotate.startAnimation(aRotate);
umdrehung++;
}while(umdrehung <10);
}
} );
Kann mir bitte jemand sagen warum????????
Viele Grüße
Moppi