Remove the white screen a Slide window transition creates when it starts

后端 未结 4 2055
执笔经年
执笔经年 2020-12-31 05:27

I am using an activity with a black background. That same activity has a toolbar and a DrawerLayout as well. This white screen makes the look inconsistent.

It can be

4条回答
  •  暖寄归人
    2020-12-31 06:15

    I also had this problem but with fragment transitions and since all the solutions that came up were just setting the window background which probably works with activities I wasn't really getting anywhere. Than I thought => let's just try to set the background of rootview in the fragment I'm pushing in to transparent.. And voila, this did the trick. So the rootview of the fragment that I'm pushing looks like this in xml:

        
    
    

提交回复
热议问题