java - Override onStop everywhere? -


intro: have made fadeout/fadein fades out opacity of views. want animate between switching activities. have add fadein/fadeout every onstop/onresume in every activity.

question: possible create custom overridden onstop function , use in every activity?

create base activity this

public abstract class baseactivity extends activity {  .................. ..................     @override     public void onstop() {         super.onstop();         // stuff     } .................... ................... } 

now in every activity extend base actiity

public class activity1 extends baseactivity 

Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -