Tweened Animations xml写法——PopupWindow弹出的补充
来源:互联网 发布:d3.js 鼠标右键 编辑:程序博客网 时间:2024/06/05 11:54
上一篇博客PopupWindow在各个位置的弹出,没有详细附上xml动画,这里都贴上来
PopupWindow是从可见屏幕外弹出的,这里要了解手机的x轴和y轴
上图:
这里android:fromYDelta=”100%p”
意思就是从Y轴的100%p开始进入
android:toYDelta=”0”
意思移动到Y轴0的位置结束
push_bottom_in.xml
<?xml version="1.0" encoding="utf-8"?><set xmlns:android="http://schemas.android.com/apk/res/android"> <translate android:fromYDelta="100%p" android:toYDelta="0" android:duration="200" /></set>
push_bottom_out.xml
<?xml version="1.0" encoding="utf-8"?><set xmlns:android="http://schemas.android.com/apk/res/android"> <translate android:fromYDelta="0" android:toYDelta="50%p" android:duration="200" /></set>
push_left_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="200" /></set>
push_left_out.xml
<set xmlns:android="http://schemas.android.com/apk/res/android"> <translate android:fromXDelta="0" android:toXDelta="-100%p" android:duration="200" /></set>
这里只是改变进入位置和退出位置,以达到window从不同位置进入的效果
0 0
- Tweened Animations xml写法——PopupWindow弹出的补充
- Android-Animations的使用大全之一:Tweened Animations详解
- Android--Tweened Animations介绍
- Tweened animations 动画原理简单分析
- Android之带遮罩层的弹出框—popUpWindow
- PopupWindow的弹出位置
- popupwindow弹出的editTextView
- Android弹出框效果——popupwindow
- Android弹出框效果——popupwindow
- popupWindow 的一种实现写法
- Android Animation 高手必读 之一 Tweened Animations 代码实现
- Animations的介绍——动画
- Android 的 Tweened animation
- 弹出菜单PopupWindow的使用
- popupWindow的弹出与关闭
- 弹出窗体PopupWindow的使用
- PopupWindow弹出框的使用
- 弹出列表popupwindow的使用
- iOS 枚举
- eclipse自动补全代码以及jadoc文档注释
- JavaEE框架Bootstrap、HTML5、jQuery、SpringMVC
- Java泛型通配符extends与super
- 过滤器和拦截器的区别
- Tweened Animations xml写法——PopupWindow弹出的补充
- 计算几何入门2--poj2653Pick-up sticks
- PJLIB 内存池实现
- 内省(introspector)和javabean
- KahaDB配置
- zend studio 破解码
- Java类加载原理解析
- 在用例图中,应该如何区分《include》和《extend》这两个原型?
- dev快捷键