动画机器人的ListView向上下滑动像通知列表 [英] Animate Android ListView to slide up and down like the notification list

查看:128
本文介绍了动画机器人的ListView向上下滑动像通知列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想包括一个ListView在我的机器人(2.2)应用类似于从顶到来通知列表。在这里,我想从底部。该列表应始终显示的顶部和当滑动向上扩大到80%以上的画面。当滑动时,它应该回到它原来的尺寸。

I want to include a ListView in my Android (2.2) application similar to the notification list that is coming from the top. Here I want it from bottom. The list should show always the top part and when slided up enlarge to 80% of the screen. When slided down, it should go back in its original size.

我试了几个备选方案,没有工作:

I tried several alternatives which did not work:

  • 花呢动画总是放大,一部分是可见的,而不是 真正的内容
  • 在手动幻灯片在步骤与动画环路 onAnimationRepeat因为它每次都必须计算完整布局 调整后,每一步是缓慢的,所以运动也相当糟糕
  • 在布局的动画似乎不是一个解决方案,因为该视图总是 可见的,所以也没有出现在动画。
  • Tweed animations always enlarge the part that is visible, not the real content
  • Manual slide up in steps with an animation loop with onAnimationRepeat as it each time has to calculate the full layout after resizing, each step is slow and so the moving is quite bad
  • Layout animations seem not to be a solution as the view is always visible and so it can not be animated during showing up.

感谢您的帮助。

推荐答案

看的 Android的滑动抽屉

这会滑从底部,你可以将一个ListView里面。

It will slide from the bottom, and you can place a ListView inside it.

这应该是这个样子:

这里是一个教程:

这篇关于动画机器人的ListView向上下滑动像通知列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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