用于弹出工具箱的popuwindow的动画设置
来源:互联网 发布:js new 详解 编辑:程序博客网 时间:2024/05/20 17:07
1 window.setAnimationStyle(R.style.PopDownMenu);//在初始化popuwindow后设置popuwindow的样式
2 在styles文件中添加
<!-- popuwindow的样式 -->
<style name="PopDownMenu">
<item name="@android:windowEnterAnimation">@anim/grow_from_topleft_to_bottomright</item>
<item name="@android:windowExitAnimation">@anim/shrink_from_bottomright_to_topleft</item>
</style>
3 在anim文件夹下创建两个文件
文件(1)grow_from_topleft_to_bottomright
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<scale
android:fromXScale="0.3" android:toXScale="1.0"
android:fromYScale="0.3" android:toYScale="1.0"
android:pivotX="0%" android:pivotY="0%"
android:duration="@android:integer/config_shortAnimTime"
/>
<alpha
android:interpolator="@android:anim/decelerate_interpolator"
android:fromAlpha="0.0" android:toAlpha="1.0"
android:duration="@android:integer/config_shortAnimTime"
/>
</set>
文件(2)shrink_from_bottomright_to_topleft
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<scale
android:fromXScale="1.0" android:toXScale="0.3"
android:fromYScale="1.0" android:toYScale="0.3"
android:pivotX="0%" android:pivotY="0%"
android:duration="@android:integer/config_shortAnimTime"
/>
<alpha
android:interpolator="@android:anim/accelerate_interpolator"
android:fromAlpha="1.0" android:toAlpha="0.0"
android:duration="@android:integer/config_shortAnimTime"
/>
</set>
- 用于弹出工具箱的popuwindow的动画设置
- 底部弹出的Popuwindow 用于更换头像
- popuwindow的动画实现
- 关于PopuWindow的弹出方式
- 设置弹出的动画
- 用于开发人员工具箱的资源
- popWindow的一些弹出动画的设置
- Android 继承于PopuWindow的自定义弹出窗体
- popupWindow设置显示和消失的动画 add:如何点击背景或返回键让popuwindow消失
- 类似Popuwindow的实现
- PopuWindow的使用
- popuwindow的使用方法
- PopuWindow和软件盘共存时的设置
- Android PopuWindow 和 软键盘共存的设置
- PopuWindow和软键盘共存时的设置
- android的popuwindow的使用
- 一个用于张量符号计算的Mathematica工具箱package
- DLTK 用于医学图像分析的深度学习工具箱
- 解决XMPP在64位下不支持的问题
- Spiral Matrix
- vs2012-vs2013编译出来的程序不能在xp上运行解决方法
- jbpm6安装完eclipse 运行helloword报错
- 图像搜索引擎
- 用于弹出工具箱的popuwindow的动画设置
- Android布局详解
- CSS3 gradient
- Android studio导入开源项目
- 使用phonegap自带的功能获取本地gps信息
- SQL技巧(2) 查询结果排序
- Android模拟器源码Qemu Study for Android Emulator
- hashCode与equals的区别与联系
- Mac 配置Android环境变量( 有图)