johannilsson/android-pulltorefresh

dividers are not displayed for rows disabled with isEnabled() method in adapter.

mplatov opened this issue · 1 comments

If normal ListView is replaced with PullToRefreshListView dividers for disabled cells will not be drawn. As it described in this answer:
http://stackoverflow.com/questions/1873020/android-listview-non-enabled-items-draw-invisible-divider/9197037#9197037
the solution is to use areAllItemsEnabled() and isEnabled() simultaneously. It works for normal ListView, but doesn't work for PullToRefreshListView, because areAllItemsEnabled() adapter method is never called.

fix/workaround suggested in this pull request:
chrisbanes/Android-PullToRefresh#228