Android ListView 中的列表项滑入?
I would like to have each item in a ListView slide in from the right.现在我知道我可以执行翻译动画并偏移每个项目的开始时间,以便它们首先滑入顶部,然后滑入下一行,依此类推。 My question is where to perform this animation? I was thinking in the getView method of the adapter I have overridden. Is this how I would go about doing this?
I would like to have each item in a ListView slide in from the right. Now I know I could just perform a translate animation and offset the starting time of each item so they slide in top first then next row and so on. My question is where to perform this animation? I was thinking in the getView method of the adapter I have overridden. Is this how I would go about doing this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
continue
Well you could use the method 'setLayoutAnimation' of the listview. This will take an animation controller. It basically calls the animation for each child of a viewgroup when its laid out on the screen.
There is domo for this in the apiSamples. It will give you more idea.