Launcher
2015-11-25 10:10
211 查看
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() { } }
相关文章推荐
- 高德地图的气泡弹出
- web -- Angularjs 备忘录应用
- 【原创】MySQL 5.7 SYS系统SCHEMA
- 【原创】MySQL 5.7 SYS系统SCHEMA
- Java中的transient,volatile和strictfp关键字
- vCenter Inventory Service无法启动
- LeetCode-Ugly Number
- tomcat 和 jboss的热部署(热发布)问题
- JavaScript
- android中activity设置全屏显示无效问题解决。
- ToolsSoap 访问webservice的工具类
- mouseover和mouseout闪烁问题
- lua--协程
- C#网页数据采集(三)HttpWebRequest
- 用Javascript进行HTML转义
- struts2.3.15.1使用注解无法访问到对应的action
- 谈谈js中的prototype及prototype属性解释和常用方法
- vsftpd的安装与配置使用
- 互联网协议入门(二)
- OGG抽取进程漏抽数据与TRANLOGOPTIONS _DISABLESTREAMLINEDDBLOGREADER隐含参数