Search in sources :

Example 1 with Bus

use of com.app.annotation.javassist.Bus in project T-MVP by north2016.

the class FlashActivity method initUI.

@Bus(EventTags.FLASH_INIT_UI)
public void initUI() {
    //StatusBarUtil.setTranslucentBackground(this);
    AlphaAnimation anim = new AlphaAnimation(0.8f, 0.1f);
    anim.setDuration(5000);
    mViewBinding.view.startAnimation(anim);
    AnimationUtil.setAnimationListener(anim, () -> OkBus.getInstance().onEvent(EventTags.JUMP_TO_MAIN));
}
Also used : AlphaAnimation(android.view.animation.AlphaAnimation) OkBus(com.base.event.OkBus) Bus(com.app.annotation.javassist.Bus)

Aggregations

AlphaAnimation (android.view.animation.AlphaAnimation)1 Bus (com.app.annotation.javassist.Bus)1 OkBus (com.base.event.OkBus)1