In Android, we can add the following statement to the onBackPressed()
function to modify the animation of going back to the MainActivity from some other activity.
overridePendingTransition(android.R.anim.slide_in_left, android.R.anim.slide_out_right);
How can we do so in HarmonyOS? What different animations are available in HarmonyOS?
According to the team, Currently HarmonyOS does not support animation customization during the transition of AbilitySlice
. Please stay tuned on HarmonyOS official websites.