与动态适配的动态列表视图 [英] Dynamic list view with a dynamic adapter

查看:142
本文介绍了与动态适配的动态列表视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要创建一个动态的ListView它增加了对滚动到初始列表的末尾动态元素。新项目应每次添加的滚动位置达到previous列表的末尾。我怎样才能做到这一点?谢谢。

I want to create a dynamic listview which adds dynamic elements on scrolling to the end of the initial list. New items should be added everytime the scroll position reaches the end of previous list. How can I achieve this? Thank you.

推荐答案

您需要添加滚动监听器和重写 onscroll()

you need to add a scroll listener and override the onscroll()

这篇关于与动态适配的动态列表视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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