I am currently showing a list of items to increase and decrease the number of users based on the amount they like.
Say, for example, there are 3 different elements: Task 1, Task 2, Task 3, each of which has 0 votes. When I move forward on one subject, I would like it to move over another, and if I lower it, then it goes below another. I got this to work fine through a list adapter and a custom class that extends the BaseAdapter, the only problem I'm facing right now is that if I am on my own client and I am outweighing the element while the other the user also searches for the item, it will update my list and it will not show that the local user has clicked on the item more so that they can vote an unlimited number of times.
Currently, I have 2 Arraylists, one with all the items and one with only the items that were clicked, and whether they were saved or omitted. I thought it might be that calling .notifyDataSetChanged () would fix the problem, but currently it just doesn't work.
I am currently using GCM to send a message to the host user that they were an upvote or downvote, the main host is the upvotes / downvotes element and sends a new list to all other clients.
If you need any code just to ask, thanks for the help.
source
share