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