android - Pass a String to setContentView? -
is there way pass string 'setcontentview()'? ie: setcontentview(output). reason have class use several activities (a custom listview adapter) , need use different layout 1 activity , not have duplicate class change setcontentview(). know xml needs compiled in apk thinking inflation of layout not need in oncreate...? so, can done using variable? or have idea/way of doing this? thnx.
*the class using here in 'revised' code section.
when starting calling activity give extras. in activity, test extras , call appropriate setcontentview.
Comments
Post a Comment