當我在 Android 應用程序中切換活動時,渲染時屏幕會快速變暗(半秒)。例如,如果我按下啟動活動的按鈕,屏幕會快速變暗。無論如何我可以阻止這個嗎???
1 回答

GCT1015
TA貢獻1827條經驗 獲得超4個贊
也許如果你嘗試關閉動畫你會得到你需要的東西
overridePendingTransition(R.anim.stay, R.anim.stay)
//then start the new activity
R.anim.stay:
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate android:duration="@android:integer/config_mediumAnimTime"/>
</set>
添加回答
舉報
0/150
提交
取消