Creating a layout within a View-extended class
I am still pretty new to Android development, and I have not been able to find any examples of how to do this.

In my Activity, I use "setContextView(new myViewClass)" to designate a View-extended class as the one to load.  Everything works fine in terms of loading the view, where I create various elements (LinearLayouts, buttons, etc.) based on a number of conditions.  Unfortunately, I cannot get any of these elements to actually appear on the screen.  

I guess my question goes to a greater understanding of Views.  All of the examples I've seen concern setting an xml file as the base view and then altering it within the code.  Is there some alternative to this?  

Thanks.
Creating a layout within a View-extended class
===

I am still pretty new to Android development, and I have not been able to find any examples of how to do this.

In my Activity, I use "setContextView(new myViewClass)" to designate a View-extended class as the one to load.  Everything works fine in terms of loading the view, where I create various elements (LinearLayouts, buttons, etc.) based on a number of conditions.  Unfortunately, I cannot get any of these elements to actually appear on the screen.  

I guess my question goes to a greater understanding of Views.  All of the examples I've seen concern setting an xml file as the base view and then altering it within the code.  Is there some alternative to this?  

Thanks.