In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
Android light application development artifact RapidView how to use, I believe that many inexperienced people do not know what to do, so this article summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.
Android function quick online artifact! Brief introduction
RapidView is a set of development components for developing Android client interface, logic, and functionality. Layout files (XML) and logic files (Lua) can be executed at run time, which are mainly used to solve the requirements of Android client interface, rapid logic update and rapid development. RapidView's XML syntax rules are similar to Android native XML, while the Lua part of write logic can directly use the Java API and Android native API provided by us in addition to language syntax rules, so developers who are familiar with Android client development will have very low cost to get started.
In addition to solving the problem of dynamic updates, RapidView hopes that Android developers can develop product functional requirements faster, so we have made some changes in syntax and development methods, hoping that developers can achieve: small features are developed very quickly and big features are launched very quickly.
RapidView hopes to bring smaller package increments and a simpler, easier to maintain and modify component library for developers. The code components of RapidView are about 180KB (30KB components + 150KB luaj).
Component characteristic
Load at run time, layout and logic can be refreshed dynamically
No need to compile, WYSIWYG, more efficient development
Minimal installation package increment
Low cost for Android developers to get started
Same as NATIVE development experience
Engineering introduction
1. Initialize RapidView
Add the source code to the project directory and add the following code to the onCreate method of the Application class for initialization: RapidPool.getInstance (). Initialize (this, null); if you need to confuse the code when compiling, keep the * .rapidview.deobfuscated directory unobfuscated
two。 Load RapidView
Write a simple XML layout file and save it in the assets/rapidview directory. Open RapidConfig.java and assign a view name in the enumeration of VIEW {} and associate with XML in Map. XML layout file:
RapidConfig.java:
Insert the following code where you need to load RapidView, which completes a simple RapidView load:
3. Development and debugging
Open RapidConfig.java, change the value of a static boolean member named DEBUG_MODE to true and recompile it locally and install it on the phone. Open the Rapid Studio debugging gadget, click File-> Open, select the assets/rapidview directory under the project, and open it.
There is a rapid_config.ini configuration in the tool directory and a FileUitl file in the utils directory in the project directory. The directories configured in these two places must correspond to each other, otherwise debugging will fail. Modify any visible parameters in XML, such as backgroundcolor, press ctrl+s to save, and observe the prompt "[100%] xxx" in log, indicating that the file has been push into the phone, reload the current activity (return to re-enter), and view the effect.
RapidStudio
Click the download link (http://cms.gtimg.com/android_cms/gzopen/8302bfa6dff45c03d0f5ba57ffdde469.zip) to download the Rapid Studio toolkit, and if you plan to use Visual Studio Code, you can search the plug-in store for Rapid Studio.
After reading the above, have you mastered how to use the Android light application development artifact RapidView? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.