动画xml 手势识别GestureDetector
来源:互联网 发布:ubuntu 怎么安装软件 编辑:程序博客网 时间:2024/04/30 11:55
1.in.xml
<?xml version="1.0" encoding="utf-8"?><set xmlns:android="http://schemas.android.com/apk/res/android"> <translate android:fromXDelta="100%p" android:toXDelta="0" android:duration="2000" /> <alpha android:fromAlpha="0" android:toAlpha="1" android:duration="2000" /></set>
2.out.xml
<?xml version="1.0" encoding="utf-8"?><set xmlns:android="http://schemas.android.com/apk/res/android"> <translate android:fromXDelta="0" android:toXDelta="-100%p" android:duration="2000" /> <alpha android:fromAlpha="1.0" android:toAlpha="0.0" android:duration="2000" /></set>
3.
/** * 定义从右侧进入的动画效果 * @return */protected Animation inFromRightAnimation() { Animation inFromRight = new TranslateAnimation( Animation.RELATIVE_TO_PARENT, +1.0f, Animation.RELATIVE_TO_PARENT, 0.0f, Animation.RELATIVE_TO_PARENT, 0.0f, Animation.RELATIVE_TO_PARENT, 0.0f);inFromRight.setDuration(500); inFromRight.setInterpolator(new AccelerateInterpolator()); return inFromRight; } /** * 定义从左侧退出的动画效果 * @return */ protected Animation outToLeftAnimation() { Animation outtoLeft = new TranslateAnimation( Animation.RELATIVE_TO_PARENT, 0.0f, Animation.RELATIVE_TO_PARENT, -1.0f, Animation.RELATIVE_TO_PARENT, 0.0f, Animation.RELATIVE_TO_PARENT, 0.0f); outtoLeft.setDuration(500); outtoLeft.setInterpolator(new AccelerateInterpolator()); return outtoLeft; }/** * 定义从左侧进入的动画效果 * @return */ protected Animation inFromLeftAnimation() { Animation inFromLeft = new TranslateAnimation( Animation.RELATIVE_TO_PARENT, -1.0f, Animation.RELATIVE_TO_PARENT, 0.0f, Animation.RELATIVE_TO_PARENT, 0.0f, Animation.RELATIVE_TO_PARENT, 0.0f); inFromLeft.setDuration(500);inFromLeft.setInterpolator(new AccelerateInterpolator()); return inFromLeft; }/** * 定义从右侧退出时的动画效果 * @return */ protected Animation outToRightAnimation() { Animation outtoRight = new TranslateAnimation( Animation.RELATIVE_TO_PARENT, 0.0f, Animation.RELATIVE_TO_PARENT, +1.0f, Animation.RELATIVE_TO_PARENT, 0.0f, Animation.RELATIVE_TO_PARENT, 0.0f); outtoRight.setDuration(500); outtoRight.setInterpolator(new AccelerateInterpolator()); return outtoRight;}
- 动画xml 手势识别GestureDetector
- Android GestureDetector手势识别
- 手势识别类 GestureDetector
- 多点手势识别GestureDetector
- GestureDetector手势识别
- GestureDetector android 手势识别
- GestureDetector(手势识别)
- Android 手势识别--GestureDetector
- Android-----手势识别GestureDetector
- GestureDetector 手势识别
- GestureDetector 手势识别器
- GestureDetector手势识别--笔记
- GestureDetector手势识别浅析
- 手势识别--GestureDetector
- GestureDetector 手势识别
- GestureDetector 手势滑动识别
- GestureDetector识别手势滑动
- GestureDetector 手势识别器
- bee
- 华为终端董事长余承东:乔布斯走后创新少了(转)
- 为什么软件界面截图不存为jpg 而推荐png?
- dotnetnuke入門
- 实例化Spring IoC容器
- 动画xml 手势识别GestureDetector
- C#构造函数与析构函数举例
- Chrome下强制http重定向到https的方法
- 研究生常用网站
- uploadify3.1版本上传附件,后台用webservice处理上传文件总结
- Opera
- mybatis工具generator使用
- Java调用DotNet WebService为什么那么难? .
- Chrome