how to remove Black background between start new activity during slide_left animation?

前端 未结 6 1054
轻奢々
轻奢々 2020-12-01 06:32

when i call new activity by animation the background make black so i want to remove black back ground so how can i achieve this? ? For animation i use

 getW         


        
6条回答
  •  生来不讨喜
    2020-12-01 06:52

    What cleared my problem was understanding following method :

    overridePendingTransition (R.anim.A,R.anim.B);

    First Argument A in this is applied to Incoming Activity. For Example If we Are going from X Activity to Y and we Apply above animation than A is applied to Y and B is Applied to X.

    Similarly when we are coming back from Y to X on Back Press. if we apply SAME: than A is applied to Y and B is applied to X.

    So it means while coming back from Y to X..Apply Hold Animation to X and Left to right to Y.

    Hope it is of some use..

提交回复
热议问题