How does Android implement network acquisition and loading of layouts?
大家讲道理
大家讲道理 2017-06-12 09:24:30
0
2
917

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?

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(2)
世界只因有你

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

曾经蜡笔没有小新

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template