daimajia / AndroidSwipeLayout

The Most Powerful Swipe Layout!
MIT License
12.38k stars 2.67k forks source link

SwipeArrayAdapter问题 #512

Open xdewx opened 6 years ago

xdewx commented 6 years ago

想要实现: ListView嵌套SwipeLayout SwipeLayout的SurfaceView里面是自定义的DownloadLayout DownloadLayout继承于RelativeLayout

所以个人思路为: 写DownloadArrayAdapter继承于SwipeArrayAdapter, 然后重载getSwipeLayoutResourceId()函数,使其返回SwipeLayout的resId 但是这样应该不能初始化SwipeLayout中的DownloadLayout组件 所以又重载了getView方法,在getView中new 出DownloadLayout,然后addView()至SwipeLayout的SurfaceView中 但是在实际运行中,发现getView方法并未调用,屏幕一片空白,所以这个问题应该怎么解决?