I noticed that the Activity class has a setContentView method where an xml resource file can be loaded. I wanted to do the same thing with a class that inherits ultimately from View. This seemed to be a dead end because the setContentView method does not exist for the View class.
This leads to a couple of questions:
1) Is it possible for View's to load layouts created in the Visual Layout Editor?
2) If not, why? It seems like not allowing users to load an xml layout directly into a View is a limitation. I expect that there is a reason why the setContentView method (or a method similar) is not provided in the API.
Thanks in advance!