On an iphone context, when we add a view as a subview of another view, anything that happens to our subview will be handled correctly, because in the xib we say which class will be handling its actions. How can we achieve this on android? Since we don't have that kind of relation between an .xml layout and a class that uses it, how can we achieve something like that?
The main purpose is, for example: while having one common header and one common footer for the entire application, we just want to add different views to "content View" between the header and footer.