daimajia / AndroidSwipeLayout

The Most Powerful Swipe Layout!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SwipeArrayAdapter问题

xdewx opened this issue · comments

commented

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

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