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() {
            
        }
    }
  • 相关阅读:
    对万网主机全部使用独立Ip的猜疑
    对windows8在PC上的前景不看好
    漂浮广告代码3
    <!DOCTYPE> 标签一点点问题
    wordpress模板中用到的条件判断语句例1
    不错的漂浮广告代码2
    autoRST Automated TCP RST Exploit
    菜单项说明以提示弹出
    JIRA安装和破解
    谈组装对象以及对象生存期管理
  • 原文地址:https://www.cnblogs.com/yico/p/4993795.html
Copyright © 2011-2022 走看看