Reputation: 20
When I switch activities in my android app, there is a quick (half a second) dim in the screen, as it renders.
e.g. If I press a button that starts an activity, the screen will quickly dim.
Is there anyway I can stop this???
Many Thanks Ed
Upvotes: 0
Views: 315
Reputation: 559
Maybe if you try to turn off animation you will get what you need
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>
Upvotes: 2