johannilsson / android-pulltorefresh

DEPRECATED This project aims to provide a reusable pull to refresh widget for Android.
2.47k stars 1.03k forks source link

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

Open mplatov opened 11 years ago

mplatov commented 11 years ago

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.

mplatov commented 11 years ago

fix/workaround suggested in this pull request: https://github.com/chrisbanes/Android-PullToRefresh/pull/228