Update SwipeListView.java
Update SwipeListView.java
Update SwipeListViewTouchListener.java
Several fixes for dismiss functions :
- Pressed state are now correctly cleaned. (Bug was occurring when dismiss a view from its backview. When recycling this view, it still have its pressed state at true). (SwipeListView l. 238)
- Correcting update of the model when using dismiss function. (Bug was occurring when a view was dismiss with its backview revealed. After a dismiss, the recycle view would still have its backview revealed). (SwipeListViewTouchListener l. 382)
- Correcting the recycling of a view. The function reloadSwipeStateInView was not updating the view according the model (opened, and openedRight). Moreover, the function was using unsupported function for API < 11 (setTranslation on view). Replacing this call with support call fro API <11. (SwipeListViewTouchListener l. 416)
- Disabling user interaction on view with dismiss animation. Could leads into unexpected behavior. For example, the backview could have a button which trigger the dismiss of the view. If the view is still clickable, the user can still send input which will trigger unexpected dismiss. (SwipeListViewTouchListener l. 998)
- Add some Javadocs.
Merge pull request #148 from yaming116/master

add debug model
Merge pull request #156 from vincentbrison/fix_dismiss

Several fixes for dismiss functions :