I am creating an Android Flappy Bird clone, but I don't know how to make a imageView move smoothly? Here is what I have done so far.
public void up(final ImageView i){
CountDownTimer start = new CountDownTimer(100, 100) {
@Override
public void onTick(long millisUntilFinished) {
i.setY(i.getY() - 10);
}
@Override
public void onFinish() {
i.setY(i.getY() - 10);
}
}.start();
}
Is there any other way to do this?