For example, dynamically from a json received from a server, a list is being played. When I clicked on a Relativelayout thread, I want to make an http request. To do this, I want to add some attribute to this Relativelayout that will contain the url I need (of the type as in html the <a> tag has href ). In the click handler, I read the element attribute I clicked on and make a request.
Found info only for the case if you use custom view. But I'm interested in, is it possible to set custom attributes with a standard view?