listview 的item一个接着一个的飞入特效

ihrthk
博客专家认证
2012-05-23 09:11:16
如题
...全文
275 9 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
iverson76333 2013-11-14
  • 打赏
  • 举报
回复
有谁有解决这个问题,或者有什么demo没,跪求!
Jony-Li 2012-10-30
  • 打赏
  • 举报
回复
ApiDemo中有那个特效,自己安装一个看看!
傲慢的上校 2012-10-28
  • 打赏
  • 举报
回复
[Quote=引用 5 楼 的回复:]

private LayoutAnimationController getListAnim() {
AnimationSet set = new AnimationSet(true);
Animation animation = new AlphaAnimation(0.0f, 1.0f);
animation.setDuration(300);
set.addAnimation(an……
[/Quote]
恩 用这个。。。
manoel 2012-05-24
  • 打赏
  • 举报
回复
LayoutAnimation
yhx810971230 2012-05-24
  • 打赏
  • 举报
回复
private LayoutAnimationController getListAnim() {
AnimationSet set = new AnimationSet(true);
Animation animation = new AlphaAnimation(0.0f, 1.0f);
animation.setDuration(300);
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(500);
set.addAnimation(animation);
LayoutAnimationController controller = new LayoutAnimationController(
set, 0.5f);
return controller;
}



listView.setLayoutAnimation(getListAnim());

用这个就可以实现了
CNnumen 2012-05-24
  • 打赏
  • 举报
回复
可以看下LayoutAnimation
zgycsmb 2012-05-23
  • 打赏
  • 举报
回复
是不是listview增加一个头,或增加一个底呀,?
ihrthk 2012-05-23
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 的回复:]
逻辑上可以这样实现:

在listview上面添一个层,这个层平时隐藏,当调用getView的时候,将这个层显示出来,然后在里面加一个线程显示动画(可参考:http://blog.csdn.net/aminfo/article/details/7589149),显示完后再隐藏层。
[/Quote]
什么叫添加一层,能不能写具体代码哦。
AMinfo 2012-05-23
  • 打赏
  • 举报
回复
逻辑上可以这样实现:

在listview上面添一个层,这个层平时隐藏,当调用getView的时候,将这个层显示出来,然后在里面加一个线程显示动画(可参考:http://blog.csdn.net/aminfo/article/details/7589149),显示完后再隐藏层。

80,471

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧