Fix for issue 47deg/android-swipelistview#41 and 47deg/android-swipelistview#76.