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?
这个是一个挺复杂的需求,我至今只看到过阿里使用了这种方式,你可以看下阿里的这套框架https://github.com/alibaba/atlas
LayoutInflater无法动态加载非build时期的xml。我觉得可以使用动态加载dex的技术来实现。