Skip to content

Flip Animation

Flip animation with Y axis

Version 0.5.3

getBinding().textview1.setOnLongClickListener {
    flipYAnimation(getBinding().textview1, getBinding().textview2)
    false
}
getBinding().textview2.setOnLongClickListener {
    flipYAnimation(getBinding().textview1, getBinding().textview2)
    false
}
getBinding().textview1.setOnLongClickListener(v -> {
    RotationKt.flipYAnimation(getBinding().textview1, getBinding().textview2);
    return false;
});

getBinding().textview2.setOnLongClickListener(v -> {
    RotationKt.flipYAnimation(getBinding().textview1, getBinding().textview2);
    return false;
});

Flip animation with X axis

Version 0.5.3

getBinding().textview1.setOnLongClickListener {
    flipXAnimation(getBinding().textview1, getBinding().textview2)
    false
}
getBinding().textview2.setOnLongClickListener {
    flipXAnimation(getBinding().textview1, getBinding().textview2)
    false
}
getBinding().textview1.setOnLongClickListener(v -> {
    RotationKt.flipXAnimation(getBinding().textview1, getBinding().textview2);
    return false;
});

getBinding().textview2.setOnLongClickListener(v -> {
    RotationKt.flipXAnimation(getBinding().textview1, getBinding().textview2);
    return false;
});

Sample code

Sample code