What is the main purpose of such methods as setTag()
and getTag()
of View
type objects?
Am I right in thinking that I can ass
Unlike IDs, tags are not used to identify views. Tags are essentially an extra piece of information that can be associated with a view. They are most often used as a convenience to store data related to views in the views themselves rather than by putting them in a separate structure.
Reference: http://developer.android.com/reference/android/view/View.html