search

Home  >  Q&A  >  body text

How does Android implement network acquisition and loading of layouts?

Since the company’s original project uses webview to develop products, running CSS3 animations is very laggy. I want to develop a version of the native app, but I also want to retain the advantage of the web that can flexibly update the interface. Now the initial idea is to start the app every time Get the xml layout from the server to the local and load it. Since I have never developed Android, I just read "The First Line of Code" and still haven't found an idea to implement it. The immature solutions recommended by reference materials such as react native on the Internet are even more unrealistic for a novice programmer like me. , I would like to ask seniors with relevant experience how to achieve my needs? Or is this demand realistic?

大家讲道理大家讲道理2752 days ago918

reply all(2)I'll reply

  • 世界只因有你

    世界只因有你2017-06-12 09:26:30

    This is a very complex requirement. I have only seen Alibaba use this method so far. You can take a look at Alibaba’s framework https://github.com/alibaba/atlas

    reply
    0
  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-06-12 09:26:30

    LayoutInflater cannot dynamically load xml during non-build period. I think this can be achieved using the technology of dynamically loading dex.

    reply
    0
  • Cancelreply