Android Studio – How to pass variable from adapter to activity?
I want btnTodoDone to show how many tasks are done. So in the adapter I add done items to dones. After that I need to get dones' size in main activity and set it to the button's text. But there…