繁体   English   中英

活动过渡动画期间,顶部和底部的条会淡入和淡出

[英]Top & bottom bars fade in and out during activity transition animation

我在连结5上测试我的应用程序,每次我在活动之间进行转换时,底部和顶部栏(本机栏)会逐渐消失并再次返回,从而立即显示启动器或下面的任何活动。

似乎与此有关:

Intent i = new Intent(getApplicationContext(), WizardActivity.class);
startActivity(i);
overridePendingTransition(R.anim.fade_exit, R.anim.fade_enter);

任何人都知道这里发生了什么以及如何在保持相同动画过渡的同时对其进行修复?

这是我的fad_exit.xml,如果可以帮助诊断

<set xmlns:android="http://schemas.android.com/apk/res/android"
    android:interpolator="@android:anim/decelerate_interpolator"

    android:zAdjustment="top">
    <alpha android:fromAlpha="1.0" android:toAlpha="0"
        android:duration="@android:integer/config_shortAnimTime"/>
</set>

修复。 该问题与将活动的主题设置为透明有关。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM