Hongmeng Intermediate AbilitySliceAnimator (HarmonyOS Hongmeng Development Tutorial with source code)

AbilitySliceAnimator

Customize the transition animation between AbilitySlice instances.
You can set different parameters to achieve different transition effects. Currently, only transition is supported. Will support rotate, alpha and scale operations later.

You can set the transition properties by calling Ability's onStart() method. The default constructor is used to set translation animation. To disable the transition animation, you can set the value of setAbilitySliceAnimator to null. Sample code:

 protected void onStart(Intent intent) {
     setAbilitySliceAnimator(new AbilitySliceAnimator());
 }

Unauthorized reprinting is prohibited


For more technical exchanges, please join the QQ group

Group name: harmonyos Hongmeng Technology Exchange
Group number: 856567895


Start from scratch to learn HarmonyOS Hongmeng 2.0 development

Guess you like

Origin blog.csdn.net/iCloudEnd/article/details/108735077