My android app project need to add a new function of saving the click count of some view(such as button,picture, and so on) in my activities.
how to settle this with proper way(in architecture view point)? should i override all the onClick()?
My android app project need to add a new function of saving the click
Share
You should set an
onclicklistenerto the desired views, store the click count in a field and increment that field when theonClick()action occurs.