报错:ViewPager$LayoutParams cannot be cast to android.widget.AbsListView$LayoutParams
以前用recycleview没有遇到过这个问题 现在用listview添加头布局和尾布局 报错最后发现原因 :LayoutParams惹的祸 需要给headView设置LayoutParams 需要为listView类型的ListView.LayoutParams params = new ListView.LayoutParams(AbsListView.LayoutParams
原创
2018-01-17 11:51:36 ·
1362 阅读 ·
0 评论