android 动画失效,Activity退出动画无效的解决方案
許多手機的Activity的退出動畫失效了,即使調用finish()后執行如下代碼也沒有用overridePendingTransition(R.anim.activity_open_in_anim, R.anim.activity_open_out_anim);
無意中查看到了系統的動畫配置,改為己用,解決了Activity退出動畫無效的問題。
配置好后不需要調用overridePendingTransition
@style/animation_translucent_translate
@anim/activity_open_in_anim
@anim/activity_open_out_anim
@anim/activity_open_in_anim
@anim/activity_open_out_anim
@anim/activity_open_in_anim
@anim/activity_open_out_anim
@anim/activity_open_in_anim
@anim/activity_open_out_anim
@anim/activity_open_in_anim
@anim/activity_open_out_anim
@anim/activity_open_in_anim
@anim/activity_open_out_anim
@anim/activity_open_in_anim
@anim/activity_open_out_anim
@anim/activity_open_in_anim
@anim/activity_open_out_anim
@anim/activity_open_in_anim
@anim/activity_open_out_anim
@anim/activity_open_in_anim
@anim/activity_open_out_anim
@anim/activity_open_in_anim
@anim/activity_open_out_anim
其實就是把Activity的動畫全都替換了一遍,很暴力😄
總結
以上是生活随笔為你收集整理的android 动画失效,Activity退出动画无效的解决方案的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 软件测试人才紧缺
- 下一篇: model.compile