android - Difference between setWindowAnimations and overridePendingTransition? -


what difference between,

getwindow().setwindowanimations() 

and

activity.overridependingtransition() 

it seems both have same functionality.

when using

getwindow().setwindowanimations(r.anim.start); 

then animation works when window opening, in type of method can't add window closeing animation.

but using

activity.overridependingtransition(r.anim.start,r.anim.end);  

this can show animation when window closeing first parameter of method starting animation , second parameter of method ending animatin.

so diffrence between above methods overridependingtransition() use set starting , ending animation activity. setwindowanimations use set starting animation.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -