Is there a way to pass a string to 'setContentView()'? ie: setContentView(OUTPUT). The reason is that I have a class that I use for several activities (a custom ListView Adapter) and I need to use a different layout for one activity and would like not have a duplicate class where the only change is the setContentView(). I know that XML needs to be compiled in the APK but I am thinking that the inflation of the layout does not need to be in the onCreate...? So, Can this be done using a variable? Or does anyone have another idea/way of doing this? Thnx.
*The Class I am using is HERE in the 'REVISED' code section.