On Tue, Jul 27, 2010 at 10:26 PM, Ed <[email protected]> wrote: > I want to dynamically pull in a layout from an external source. > > As discussed in this thread from September 2009 - > http://groups.google.com/group/android-developers/browse_thread/thread/bfec246d0537ec6b/6c31a85779d86a3e?lnk=gst&q=inflate+from+xmlpullparser#6c31a85779d86a3e > > I am wondering if the situation has changed since this discussion or > if it is likely to change.
No and probably not, respectively -- sorry! > The only work around I can think of is a custom scripting language > that allows the definition of views that are created from code. There is nothing preventing you from implementing your own XML layout inflater that works with standard Android XML, but works with regular parsers. > Ideally this would parse the same xml as a standard layout. Obviously > this would involve a lot of code and probably be fairly slow. Which is the reason why Android doesn't offer it, I think. Also bear in mind that your solution requires manually handling the conditions that would ordinarily be covered by resource sets (portrait vs. landscape, small vs. normal vs. large screen size, etc.). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 2.9 Available! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

