Android : Proper place for ListView listeners

on Thursday, March 26, 2015


I am wondering what is the proper place for ListView listeners - I currently have my activity/fragment extending interfaces like OnItemClickListener and then I modify the data structure and notify adapter to update the view. What is the correct way of doing that? Anonymous classes? Let the Adapter have full control over data structure and let him be the Listener as well?


0 comments:

Post a Comment