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. I understand the need to use pre-compiled xml layouts so if there is an option to dynamically pull in a layout that is already compiled that would be fine. Basically I want a setup where I can change a view layout without an app update. The elements within the view would be fairly static (e.g. there will be 2 buttons call foo and bar that fire fooOnClick and barOnClick). The only work around I can think of is a custom scripting language that allows the definition of views that are created from code. Ideally this would parse the same xml as a standard layout. Obviously this would involve a lot of code and probably be fairly slow. Button btnFoo = new Button(); btnFoo.setText("foo"); dynamicLayout.addView(btnFoo); If this is the only option at least the EdsMagicLayoutInflater class would be reusable across projects. Cheers, Ed -- 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