Flip Animation¶
Flip animation with Y axis¶
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¶
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;
});