@@ -0,0 +1,2900 @@
+package com.joker.fourfun.ui;%0A%0Aimport android.content.Intent;%0Aimport android.os.Bundle;%0Aimport android.view.View;%0Aimport android.view.animation.Animation;%0Aimport android.view.animation.ScaleAnimation;%0Aimport android.widget.ImageView;%0A%0Aimport com.bumptech.glide.Glide;%0Aimport com.bumptech.glide.load.engine.DiskCacheStrategy;%0Aimport com.bumptech.glide.request.animation.ViewPropertyAnimation;%0Aimport com.joker.fourfun.R;%0Aimport com.joker.fourfun.base.BaseMvpActivity;%0Aimport com.joker.fourfun.presenter.SplashPresenter;%0Aimport com.joker.fourfun.presenter.contract.SplashContract;%0Aimport com.joker.fourfun.utils.SystemUtil;%0A%0Aimport butterknife.BindView;%0A%0Apublic class SplashActivity extends BaseMvpActivity%3CSplashContract.View, SplashPresenter%3E implements%0A        SplashContract.View %7B%0A    @BindView(R.id.iv_content)%0A    ImageView mContentImageView;%0A    private ScaleAnimation mAnimation;%0A%0A    @Override%0A    protected void onCreate(Bundle savedInstanceState) %7B%0A        getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_FULLSCREEN%0A                %7C View.SYSTEM_UI_FLAG_HIDE_NAVIGATION %7C View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY);%0A        super.onCreate(savedInstanceState);%0A        mContentImageView = (ImageView) findViewById(R.id.iv_content);%0A%0A        mPresenter.getZhihuPic();%0A        mAnimation = new ScaleAnimation(1.0f, 1.5f, 1.0f, 1.5f, Animation%0A                .RELATIVE_TO_SELF, 0.5f, Animation%0A                .RELATIVE_TO_SELF, 0.5f);%0A        mAnimation.setFillAfter(true);%0A        mAnimation.setDuration(3500);%0A        mAnimation.setAnimationListener(new Animation.AnimationListener() %7B%0A            @Override%0A            public void onAnimationStart(Animation animation) %7B%0A            %7D%0A%0A            @Override%0A            public void onAnimationEnd(Animation animation) %7B%0A                startActivity(new Intent(SplashActivity.this, MainActivity.class));%0A                finish();%0A            %7D%0A%0A            @Override%0A            public void onAnimationRepeat(Animation animation) %7B%0A            %7D%0A        %7D);%0A    %7D%0A%0A    @Override%0A    protected void initLayout() %7B%0A        setContentView(R.layout.activity_splash);%0A        mComponent.inject(this);%0A    %7D%0A%0A    @Override%0A    public void showZhihuPic(String url) %7B%0A        Glide.with(this)%0A                .load(url)%0A                .animate(new ViewPropertyAnimation.Animator() %7B%0A                    @Override%0A                    public void animate(View view) %7B%0A                        view.startAnimation(mAnimation);%0A                    %7D%0A                %7D)%0A                .diskCacheStrategy(DiskCacheStrategy.RESULT)%0A                .centerCrop()%0A                .into(mContentImageView);%0A    %7D%0A%0A    @Override%0A    public void showError(String message) %7B%0A        SystemUtil.showToast(this, message);%0A    %7D%0A%0A    @Override%0A    protected void onDestroy() %7B%0A        SystemUtil.cancelToast();%0A        super.onDestroy();%0A    %7D%0A%7D%0A

add SplashActivity