Android页面淡入淡出效果的实现
来源:互联网 发布:常州软件开发公司 编辑:程序博客网 时间:2024/05/17 21:07
使用AlphaAnimation可以实现页面的淡入和淡出效果
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); final View view = View.inflate(this, R.layout.start, null); setContentView(view); //AlphaAnimation 动画构造器参数:起始alpha值的动画 结束alpha值的动画 AlphaAnimation aa = new AlphaAnimation(0.3f,1.0f); //动画持续时间 aa.setDuration(2000); //使用View的startAnimation开始执行动画 view.startAnimation(aa); //给这个动画绑定动画监听器,监听动画结束或重复的动画事件 aa.setAnimationListener(new Animation.AnimationListener() { public void onAnimationEnd(Animation arg0) { startActivity(new Intent(RLSZStart.this, RLSZMainActitity.class)); finish(); } public void onAnimationRepeat(Animation animation) {} public void onAnimationStart(Animation animation) {} }); }
0 0
- Android页面淡入淡出效果的实现
- 页面淡入淡出效果
- 实现淡入淡出效果
- Android实现动画效果之淡入淡出
- Android 淡入淡出效果
- 窗口淡入淡出效果的实现
- 窗口淡入淡出效果的实现
- 窗口淡入淡出效果的实现
- 窗口淡入淡出效果的实现
- C#实现窗体的淡入淡出效果
- C# 实现窗体的淡入淡出效果
- jQuery实现窗口的淡入淡出效果
- 用QT实现淡入淡出的效果
- 《JavaWeb---JQuery淡入淡出效果的实现》
- 窗口淡入淡出效果的实现 .
- 实现淡入淡出效果的蒙版
- js实现轮播图--淡入淡出的效果。
- 页面进出淡入淡出效果
- 日期时间JPA映射
- [English Grammar Learning] and [accumulation]
- Linux系统编程——I/O多路复用select、poll、epoll的区别使用(转)
- swift学习之构造函数
- [转]C/C++求职宝典21个重点笔记(常考笔试面试点)--作者:敏敏Alexia
- Android页面淡入淡出效果的实现
- 浅谈使用NGUI的界面架构(一)
- AFNetworking3.0判断网络状态
- JAVA Script 学习之通过setTimeout 实现钟表的效果
- Android各个版本代号及其特性
- leetcode 70. Climbing Stairs QuestionEditorial
- mysql 5.7.13安装
- 事件监听器_Demo02.java
- 毕向东Java视频学习笔记【day21-IO流<1>】