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
Post a Comment