i trying incorporate 2 builds(say build , build b)
within single android project. , have created global constant boolean variable (say flag)
. based on theflag
value , want resources loaded respective build.
is possible create 2 different layout_a
, layout_b
folders instead of default layout
folder in activities call upon resources required folders. or
should create different files homepage_a.xml
, homepage_b.xml
?
e.g
in activity class , want use if(flag) setcontentview(r.layout_a.homepage); else setcontentview(r.layout_b.homepage); instead of if(flag) setcontentview(r.layout.homepage_a); else setcontentview(r.layout.homepage_b);
thank you.
Comments
Post a Comment