Android动画-LayoutAnimationController
来源:互联网 发布:北大青鸟软件培训 编辑:程序博客网 时间:2024/06/11 21:46
LayoutAnimationController可以控制一组控件按照规定显示。并且,LayoutAnimationController可以用xml文件实现,也可以用代码实现:
一、代码实现:代码实现有多种方式:
<?xml version="1.0" encoding="utf-8"?><set xmlns:android="http://schemas.android.com/apk/res/android" android:shareInterpolator="true" > <translate android:fromYDelta="100%" android:toYDelta="0%" /> <alpha android:fromAlpha="0.3" android:toAlpha="1.0" /></set>
Animation animation = AnimationUtils.loadAnimation(context, R.anim.anim_botton2top); animation.setDuration(3000); set.addAnimation(animation); LayoutAnimationController controller = new LayoutAnimationController(set, 0.5f); controller.setOrder(LayoutAnimationController.ORDER_NORMAL); linearlayout_weather_group.setLayoutAnimation(controller); linearlayout_weather_group.startLayoutAnimation();
下面是显示的顺序
LayoutAnimationController.ORDER_NORMAL; //顺序显示
LayoutAnimationController.ORDER_REVERSE;//反显示
LayoutAnimationController.ORDER_RANDOM//随机显示
0 0
- Android动画之LayoutAnimationController
- Android动画-LayoutAnimationController
- Android动画之LayoutAnimationController(五)
- Android动画之LayoutAnimationController(五)
- Android动画之LayoutAnimationController(五)
- 【Android动画九章】-LayoutAnimationController
- Android开发--图形图像与动画(五)--详解LayoutAnimationController
- LayoutAnimationController
- LayoutAnimationController
- LayoutAnimationController
- LayoutAnimationController
- LayoutAnimationController
- LayoutAnimationController
- LayoutAnimationController为视图添加动画效果
- 使用LayoutAnimationController实现ListView动画效果
- Android Animations之LayoutAnimationController的使用方法
- Android Animations之LayoutAnimationController的使用方法
- android学习——LayoutAnimationController 和 ViewGroup
- 简单实用的垂直导航菜单
- myForeach
- Python.PyGanme -- 用Python写游戏
- jQuery自定义函数
- java 重定向 中文乱码问题(未解决)
- Android动画-LayoutAnimationController
- 更新约束在iPad上崩溃
- 在Android 6.0 设备上动态获取权限
- CSS3 单选框动画特效
- android获取手机时间
- Canvas save、restore方法
- PCB课程设计6.2(元器件封装库的创建:wizard创建)
- 设计模式-结构型- 组合模式(Composite)
- myIterator