Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ListView我需要抓住至少有一个子视图来显示提示的时刻,指向listView.getChildAt(0). 我如何捕捉这个事件?
ListView
listView.getChildAt(0)
正如@Mikel 所说.. 用于listView.getCount()确定是否ListView有子视图。
listView.getCount()
您可以制作自定义适配器,并在添加项目后立即调用您在创建适配器时注册的侦听器。