Hi, Is there a way to define xml layout resources in a modular way? I am building individual 'panels' through code only, it would probably make sense if each were defined in their own xml file, which I can pull at runtime, something like the following psuedocode:
// PanelFarm.xml <LinearLayout> <TextView> <EditView> </LinearLayout> // PanelCity.xml <LinearLayout> <ScrollView> </LinearLayout> // ActivityMain.xml <LinearLayout> </LinearLayout> // ActivityMain.java public void buildUI() { LinearLayout llFarm1 = R.layout.PanelFarm.xml; addView(llFarm); LinearLayout llFarm2 = R.layout.PanelFarm.xml; addView(llFarm2); LinearLayout llCity = R.layout.PanelCity.xml; addView(llCity); } if it's possible to do something like that, would it be slowing constantly reading from the xml files at runtime, or does android cache all our layout xml files in memory anyway? Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---