This is how I would suggest setting up your code:
You should have a custom list adapter where you should have your button listener that gets called when a listview item is clicked. This button listener should call a method that 'checks' this friend as followed, or execute some code to follow that person.
In your activity class (where you set the list adapter to your listview), you can then have a button listener for the master follow button. When this button is clicked, iterate through each of the items in your listview and call the method to 'follow' them.
If you post your list adapter and base code, I can help you set it up. The base of the code can be referenced from: https://stackoverflow.com/a/8166802/1869576