Blinking screen on image transition between activities

后端 未结 12 2229
温柔的废话
温柔的废话 2020-12-02 07:01

I implemented an image transition between two activities using the new shared elements from lollipop. It\'s working but I get a weird white blinking on the entire screen du

12条回答
  •  抹茶落季
    2020-12-02 07:32

    On the exiting activity, call getWindow().setExitTransition(null);

    On the entering activity, call getWindow().setEnterTransition(null);

    It will prevent the fade out of the exiting activity and the fade in of the entering activity, which removes the apparent blinking effect.

提交回复
热议问题