I have an android app with a number of activities. While switching between activities and then press back button a very short flickering occurs. I test adding this line in both onBackPressed
and onResume
:
overridePendingTransition(0,0);
also I add this line to my theme style:
<item name="android:windowAnimationStyle">@null</item>
I did not find any solution. here is a short video:
Thanks for any help
You can add this line to your theme style. It will delay a little bit the presentation by removing the flickering.
<item name="android:windowDisablePreview">true</item>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.