zoukankan      html  css  js  c++  java
  • Launcher

    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() {
            
        }
    }
  • 相关阅读:
    CF700E Cool Slogans
    [NOI2018]你的名字
    [CTSC2012]熟悉的文章
    CF666E Forensic Examination
    [BZOJ4310]跳蚤
    CF1063F String Journey
    [BZOJ3277]串/CF204E Little Elephant and Strings
    CF123D String
    使用ActiveReports for .net 进行报表开发之交叉报表(转)
    使用ActiveReport for .net 进行报表开发(一)(转自Cure The Last Day Of Summer)
  • 原文地址:https://www.cnblogs.com/yico/p/4993795.html
Copyright © 2011-2022 走看看