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?
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.