Importing a layout xml file from a remote server

by kingkung » Fri, 27 Jun 2008 01:10:34 GMT


Sponsored Links
 Is this possible?  Can I import an android layout xml file from a
remote server, and use it within the application (without writing my
own parser)?  If not, is there an easy way to parse out a remote xml
file and create a layout on the fly?

Thanks,

James


--~--~---------~--~----~------------~-------~--~----~



Importing a layout xml file from a remote server

by hackbod » Fri, 27 Jun 2008 08:59:01 GMT


 Currently view inflation only works on compiled XML resources.  Being
able to operate on any generic XML file is in the design, but won't be
available for 1.0.  Even if it was, I suspect the performance
difference between the two would be pretty disturbing.  Once the code
is open-source, I think a good project for someone would be to take
the current aapt code, and add an option so it can compile a single
XML file against the resources of an application (and system).  Then
your server could generate the XML file, compile it to binary, serve
that to the application, and let the app load its layout efficiently
from that.



--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. SDK running OK with Linux/Eclipse 64 bits ?

Hi,

I just have upgraded to Mandriva 64bits.
I have installed the lasted Eclipse.

But it seems it has problems loading 32bits SDK libs :

Failed to parse the out of 'adb version'
....tools/adb: error while loading shared libraries: libncurses.so.5:
cannot open shared object file
...

Can you help me ?  I'd really like to stay in Linux 64 bits...

-- 

2. How to highlight the number and URL in page displayed

Hi,

In the app i have displayed, i would be displaying the address of a
DEALER and PHONE NUMBER and home page URL. When the user click on
number the application should iniate the call and when the user click
on the URL it should open up in a new browser. I want to know how to
make the number and URL as hyperlink in the page

-Sandeep

-- 

3. Trackball Highlight for Header in ListView

4. Explanation about different UI meansuring...

5. How to create a closed (circular) ListView

6. OpenGL Error 1281 loading textures on Droid in native resolution

7. Explanation about different UI meansuring...