- key
- The key identifying the tag
- tag
- An Object to tag the view with
Type Reason Java.Lang.IllegalArgumentException If they specified key is not valid
Sets a tag associated with this view and a key. A tag can be used to mark a view in its hierarchy and does not have to be unique within the hierarchy. Tags can also be used to store data within a view without resorting to another data structure. The specified key should be an id declared in the resources of the application to ensure it is unique (see the ID resource type). Keys identified as belonging to the Android framework or not associated with any package will cause an Java.Lang.IllegalArgumentException to be thrown.