Android 图片翻转动画
来源:互联网 发布:能看cctv5的网络电视 编辑:程序博客网 时间:2024/05/01 02:28
font.xml
back.xml
使用:
- <?xml version="1.0" encoding="utf-8"?>
- <set xmlns:android="http://schemas.android.com/apk/res/android"
- android:interpolator="@android:anim/accelerate_interpolator">
- <scale
- android:fromXScale="0.0"
- android:toXScale="1.0"
- android:fromYScale="1.0"
- android:toYScale="1.0"
- android:pivotX="50%"
- android:pivotY="50%"
- android:duration="150"/>
- </set>
back.xml
- <?xml version="1.0" encoding="utf-8"?>
- <set xmlns:android="http://schemas.android.com/apk/res/android"
- android:interpolator="@android:anim/accelerate_interpolator">
- <scale
- android:fromXScale="1.0"
- android:toXScale="0.0"
- android:fromYScale="1.0"
- android:toYScale="1.0"
- android:pivotX="50%"
- android:pivotY="50%"
- android:duration="150"/>
- </set>
使用:
- Animation aniback = AnimationUtils.loadAnimation(getContext(), R.anim.back);
- aniback.setAnimationListener(new AnimationListener()
- {
- @Override
- public void onAnimationStart(Animation animation)
- {
- }
- @Override
- public void onAnimationRepeat(Animation animation)
- {
- }
- @Override
- public void onAnimationEnd(Animation animation)
- {
- if (isCNPic)
- {
- ivPic.setImageResource(R.drawable.system_tip1);
- isCNPic = false;
- }
- else
- {
- ivPic.setImageResource(R.drawable.system_tip0);
- isCNPic = true;
- }
- ivPic.startAnimation(AnimationUtils.loadAnimation(getContext(), R.anim.font));
- }
- });
- ivPic.startAnimation(aniback);
- Android 图片翻转动画
- Android 图片翻转动画
- Android图片翻转动画效果
- android实现图片翻转动画
- 简单实现Android图片翻转动画效果
- css3动画(图片翻转)
- 【Android开发小记--5】动画--两张图片轮回翻转
- android 360度图片翻转、旋转动画等待框
- 动画特效一:图片翻转
- android 图片翻转
- Android的Flip翻转动画
- android 翻转效果动画源码
- Android 翻转动画 Rotate3dAnimation 效果
- Android实现卡片翻转动画
- Android 卡片翻转动画效果
- Android动画之3D翻转动画
- css 3D翻转图片动画
- IOS翻转动画(可来回切换图片)
- C#代码通过dtd验证xml文件格式是否正确
- ※C++随笔※=>☆C++基础☆=>※№ C语言与C++语言之间关系
- Ext布局实例-----cardLayout布局
- VB Silverlight APP
- 包执行中提示错误:The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.
- Android 图片翻转动画
- MyEclipse验证码
- Ext布局实例-----TabPanel布局
- android market 开发者注册
- 嵌入式系统 Boot Loader 技术内幕
- Ext布局实例-----accordion布局
- Hibernate
- Ext布局实例-----FormLayout布局
- NIO3