listview动画效果 递增式出现
来源:互联网 发布:数理经济学知乎 编辑:程序博客网 时间:2024/06/13 18:16
private LayoutAnimationController getListAnim() {
AnimationSet set = new AnimationSet(true);
Animation animation = new AlphaAnimation(0.0f, 1.0f);
animation.setDuration(200);
set.addAnimation(animation);
animation = new TranslateAnimation(Animation.RELATIVE_TO_SELF, 0.0f,
Animation.RELATIVE_TO_SELF, 0.0f, Animation.RELATIVE_TO_SELF,
-1.0f, Animation.RELATIVE_TO_SELF, 0.0f);
animation.setDuration(200);//设置动画时间
set.addAnimation(animation);
LayoutAnimationController controller = new LayoutAnimationController(
set, 0.5f);
return controller;
AnimationSet set = new AnimationSet(true);
Animation animation = new AlphaAnimation(0.0f, 1.0f);
animation.setDuration(200);
set.addAnimation(animation);
animation = new TranslateAnimation(Animation.RELATIVE_TO_SELF, 0.0f,
Animation.RELATIVE_TO_SELF, 0.0f, Animation.RELATIVE_TO_SELF,
-1.0f, Animation.RELATIVE_TO_SELF, 0.0f);
animation.setDuration(200);//设置动画时间
set.addAnimation(animation);
LayoutAnimationController controller = new LayoutAnimationController(
set, 0.5f);
return controller;
}
mLv.setLayoutAnimation(getListAnim());
0 0
- listview动画效果 递增式出现
- listview select 动画效果
- ListView动画效果
- listView动画效果
- ListView 一行行显示动画效果
- 给ListView添加动画效果
- ListView的item动画效果
- ListView的特殊动画效果
- listview删除动画 折叠效果
- ListView滑动item卡片式推进动画效果
- ListView之简单动画效果实现
- ListView中item删除动画效果
- listview中 对adapter添加动画效果
- ListView中item删除动画效果
- 【Android】ListView淡入动画效果的实现
- Android—ListView Item 展开动画效果
- ListView底部item飞入动画效果
- Android—ListView Item 展开动画效果
- 如何学好PHP
- ubuntu14.04+caffe训练测试自己的图片数据
- nginx源码技巧总结
- 常用的maven仓库地址
- rws 和 rwd
- listview动画效果 递增式出现
- Linux系统,在图形界面下,设置开机启动客户端程序(脚本)。
- 【GDOI2017模拟11.4】Walk
- Android_System_相机拍照获取图片
- 微信号码开通状态检测助手让人耳目一新
- eclipse工程转入android studio后碰见的问题及解决方式.
- Linux根据端口号杀进程
- Android 代码设置TextView 字体颜色--ColorStateList
- Android EditText禁止输入空格和特殊字符