推升动画android系统? [英] Push Up animation in android?

查看:176
本文介绍了推升动画android系统?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要实现我的android应用程序中的新闻源。它应该像动画中的API演示推升动画。但在我的应用程序获得,其中包含图像和其率领一个对象数组。我如何使用ViewFlipper或任何其他方式动画新闻源?

I need to implement a news feed in my android application. It should animate like the push up animation in API Demos. But In my application I get A object Array which contains image and its heading. How can I animate the news feed using ViewFlipper or any other way ?

先谢谢了!

推荐答案

AniationFactory的.java 有功能 outFromBottom()

因此​​,可以说你有 yourView ,你想将它添加到一个垂直的LinearLayout 名为 feedLL

So lets say you have yourView and you want to add it to a vertical LinearLayout called feedLL.

使用以下code:

Animation animation = AnimationFactory.inFromBottom();
animation.setDuration(1000);
yourView.setVisibility(View.GONE);
yourView.setAnimation(animation);
feedLL.addView(yourView);
yourView.setVisibility(View.VISIBILE);

这篇关于推升动画android系统?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆