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 -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -