开发过程中遇到的坑 - - SwipeRefreshLayout


错误(表象):listView设置adapter后不执行getView方法,getCount() > 0


原因:listView的父View是SwipeRefreshLayout控件,该控件只能有一个直接子View,当有多个时只显示第一个view


原因分析:1.先排除代码方面的问题:getCount数量、getView return.......

                2.布局问题:listView及其父控件的高度,SwipeRefreshLayout。。。。。。。


修改前:

listView的getView()方法不执行

修改后:

listView的getView()方法不执行


相关文章:

  • 2021-11-07
  • 2022-12-23
  • 2022-02-14
  • 2021-12-04
  • 2021-12-15
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-15
  • 2021-09-09
  • 2022-12-23
  • 2022-12-23
  • 2021-10-04
  • 2022-02-28
  • 2021-12-21
相关资源
相似解决方案