Android共享元素过渡闪烁问题

问题描述

这里我在 activity_credential.xml 中有一个ImageView,我尝试将其发送到另一个Activity activity_signup.xml 中,现在的问题是当我尝试将其发送到ActivitySignup,一切都会变得流畅,但是当我按下后退按钮时,它会闪烁,我正在附上屏幕录像或它!

以下是屏幕录像:https://drive.google.com/file/d/1xCBHY4R29GXC2d8ksWrkr6p-pwUVio_u/view

这是activity_credential.xml

<ImageView
    android:id="@+id/IMG_APP_BANNER"
    android:src="@drawable/logo_high"
    android:layout_width="256dp"
    android:transitionName="APPBANNER"
    android:layout_height="wrap_content"/>

这是我切换到ActivitySignup.xml

的方式
    ActivityOptions options = ActivityOptions.makeSceneTransitionAnimation(ActivityCredentials.this,getImgAppBanner(),"APPBANNER");
            startActivity(new Intent(ActivityCredentials.this,ActivitySignup.class),options.toBundle());

这是activity_signup.xml

<ImageView
    android:layout_gravity="right"
    android:id="@+id/IMG_APP_BANNER"
    android:src="@drawable/logo_high"
    android:layout_width="256dp"
    android:transitionName="APPBANNER"
    android:layout_height="wrap_content"/>

这是我的style.xml

 <style name="BaseAppTheme" parent="Theme.AppCompat.Light.NoActionBar">
    <item name="colorPrimary">@color/colorPrimary</item>
    <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
    <item name="colorAccent">@color/colorAccent</item>
    <item name="android:windowBackground">@color/materialWhite</item>     
    <item name="android:windowActivityTransitions">true</item>

</style>

任何人都可以建议,什么是错误

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)