If each row in the ListView know what state it is in(butten), You could control each row in the ListView
using listeners or LocalBroadcastManager
. Try this. That is a ListView
skeleton to start thinking in OOP where each row really becomes an object that could know what state it is in . A ListView abstraction example that makes it easier to understand/see the java code as objects.
From the example above, let say that every row(EventItem
) that are created are a listener or register for LocalBroadcastManager
Then it would be easy to address each row. Talk to each row and ask it to stop having the button in a pause state, or whatever
...I'm updating this answer since the link above doesn't work. Here's a new link to a gethub project