This repository has been archived by the owner on Apr 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 147
Clicked item view is not redrawn if the swipe to dismiss is enabled. #9
Comments
Hi, I am sorry, but I cannot reproduce this. I applied your patch, and pressing e.g. Item 2 gives me:
Is this really the only thing you changed in the demo app, to cause the described behavior? |
Yes that is all I changed in the demo app. I used git format-patch to generate it. Make sure you enable the swipe-to-dismiss option in the settings and click several items. And just in case I am using a real device (motorola M201) with android 4.1.2 for testing. This is my output:
|
Fixed and published version 0.1.1 to maven central. Within the next 2 hours it should be synced, so it will be available via dependency resolution. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have implemented a list, using EnhancedListView, that allows users to remove items from it by swiping. But also I would like to allow users to select one item from the list by clicking on it.
For some reason when the I enable swipeToDismiss on the list and click on a item, all other items in the list get redrawn except the one I clicked. For this reason the clicked item view is not updated and never changes to the selected state.
You can see this my modifying the EnhancedListViewDemo application so it prints the list items that are redrawn in the getView() method and call the notifyDataSetChanged() on the adapter in the onItemClick callback.
When swipeToDismiss is disabled and you click on an item the notifyDataSetChanged() is called and you can see in the log that all items in the list are redrawn by calls to the getView() method.
When I enable the swipeToDismiss on the list and you click on an item you will notice on the logs that all items are redrawn (via getView()) except for the item you clicked.
You may use this patch to see what I am saying:
The text was updated successfully, but these errors were encountered: