Launcher

最后都变了- 提交于 2020-02-15 08:13:46
package com.zftlive.android;

import android.content.Context;
import android.view.View;
import android.view.animation.AlphaAnimation;
import android.view.animation.Animation;
import android.view.animation.Animation.AnimationListener;

import com.zftlive.android.base.BaseActivity;
import com.zftlive.android.sample.MainActivity;

/**
 * 绋嬪簭鍚姩鐣岄潰
 * @author 鏇剧箒娣?
 * @version 1.0
 *
 */
public class Launcher extends BaseActivity {

    @Override
    public int bindLayout() {
        return R.layout.activity_launcher;
    }

    @Override
    public void initView(View view) {
        
        //娣诲姞鍔ㄧ敾鏁堟灉
        AlphaAnimation animation = new AlphaAnimation(0.3f, 1.0f);
        animation.setDuration(2000);
        animation.setAnimationListener(new AnimationListener() {

            @Override
            public void onAnimationStart(Animation animation) {
                
            }

            @Override
            public void onAnimationRepeat(Animation animation) {
                
            }

            @Override
            public void onAnimationEnd(Animation animation) {
                //璺宠浆鐣岄潰
                getOperation().forward(MainActivity.class);
                finish();
                //鍙冲線宸︽帹鍑烘晥鏋?
//                overridePendingTransition(R.anim.push_left_in,R.anim.push_left_out);
                //杞姩娣″嚭鏁堟灉1
                overridePendingTransition(R.anim.scale_rotate_in,R.anim.alpha_out);
                //涓嬪線涓婃帹鍑烘晥鏋?
//                overridePendingTransition(R.anim.push_up_in,R.anim.push_up_out);
            }
        });
        view.setAnimation(animation);
    }

    @Override
    public void doBusiness(Context mContext) {
        
    }

    @Override
    public void resume() {
        
    }

    @Override
    public void destroy() {
        
    }
}

 

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!