Introduction to six recommended open source Android (android) frameworks
Source: Internet
Author: User
<span id="Label3"></p><p style="margin-top:0px;margin-bottom:0px;padding:5px 0px;font-size:14px;font-family:tahoma, arial, ‘宋体‘;line-height:25.2000007629395px;white-space:normal;background-color:rgb(255,255,255);"><p style="margin-top:0px;margin-bottom:0px;padding:5px 0px;font-size:14px;font-family:tahoma, arial, ‘宋体‘;line-height:25.2000007629395px;white-space:normal;background-color:rgb(255,255,255);"><strong>1, Volley<br><br></strong>Project Address Https://github.com/smanikandan14/Volley-demo<br>(1) asynchronous download of JSON, image, etc.;<br>(2) Ordering of network requests (scheduling)<br>(3) priority processing of network requests<br>(4) Cache<br>(5) Multi-level cancellation request<br>(6) linkage with activity and life cycle (simultaneous cancellation of all network requests at end of Activity)</p></p><p style="margin-top:0px;margin-bottom:0px;padding:5px 0px;font-size:14px;font-family:tahoma, arial, ‘宋体‘;line-height:25.2000007629395px;white-space:normal;background-color:rgb(255,255,255);"><p style="margin-top:0px;margin-bottom:0px;padding:5px 0px;font-size:14px;font-family:tahoma, arial, ‘宋体‘;line-height:25.2000007629395px;white-space:normal;background-color:rgb(255,255,255);"><strong>2, android-async-http<br><br></strong>Project Address: Https://github.com/loopj/android-async-http<br>Document Description: http://loopj.com/android-async-http/<br>(1) processing request results in an anonymous callback<br>(2) making HTTP requests outside the UI thread<br>(3) file Breakpoint Upload<br>(4) Smart Retry<br>(5) Default gzip compression<br>(6) support parsing into JSON format<br>(7) cookies can be persisted to sharedpreferences</p></p><p style="margin-top:0px;margin-bottom:0px;padding:5px 0px;font-size:14px;font-family:tahoma, arial, ‘宋体‘;line-height:25.2000007629395px;white-space:normal;background-color:rgb(255,255,255);"><strong><strong>3. Afinal Frame<br><br></strong></strong>Project Address: https://github.com/yangfuhai/afinal<br>There are four main modules:<br>(1) Database module: An ORM framework in Android that uses a thread pool to manipulate Sqlite.<br>(2) Note module: The IOC framework in android, which can be used for UI binding and event binding in a fully annotated manner. No need for Findviewbyid and setclicklistener.<br>(3) Network module: Encapsulation HTTP data request through httpclient, support Ajax mode loading, support downloading and uploading file Function.<br>(4) Picture Cache module: when loading bitmap through finalbitmap,imageview, There is no need to consider the phenomenon of image dislocation when the Oom and Android containers appear during the bitmap loading process.<br>Finalbitmap can configure the number of thread preempted threads, cache size, Cache path, load Display animation, etc. Finalbitmap's memory Management uses the LRU algorithm,<br>Not using weak references (after android2.3, Google has not recommended the use of weak references, android2.3 after the forced recovery of soft and weak references, details of the official Android document),<br>Better management of bitmap memory. Finalbitmap can customize the downloader to extend other protocols to display network pictures, such as Ftp. You can also customize the bitmap display,<br>Play animations when ImageView display pictures (the default is the gradient animation display).</p><p style="margin-top:0px;margin-bottom:0px;padding:5px 0px;font-size:14px;font-family:tahoma, arial, ‘宋体‘;line-height:25.2000007629395px;white-space:normal;background-color:rgb(255,255,255);"><strong><strong>4. Xutils Frame<br><br></strong></strong>Project Address: Https://github.com/wyouflf/xUtils<br>There are four main modules:<br>(1) Database Module: The ORM framework in android, a line of code can be used to increase the deletion of the search;<br>Support transactions, closed by default;<br>Annotations can be used to customize table names, column names, foreign keys, uniqueness constraints, not null constraints, check constraints, etc. (please note the table and column names when confusion is required);<br>Support for binding foreign keys, saving entities when the foreign key associated entities are automatically saved or updated;<br>Automatic loading of foreign key associated entities, support delay loading;<br>Support chain expression query, more intuitive query semantics, refer to the following introduction or sample Examples.<br>(2) Note module: The IOC framework in android, full annotation can be ui, resource and event binding;<br>New event binding mode, the use of obfuscation tools can still work properly;<br>Currently supports 20 commonly used event bindings, see Viewcommoneventlistener Class and package Com.lidroid.xutils.view.annotation.event.<br>(3) Network module: Support synchronous, asynchronous way of request;<br>Support large file upload, upload large files will not oom;<br>Support Get,post,put,move,copy,delete,head,options,trace,connect request;<br>Download support 301/302 redirect, support setting whether to rename downloaded files according to content-disposition;<br>A request to return text content (by default, only get requests Enabled) supports caching, setting the default expiration time and the expiration time for the current Request.<br>(4) Picture Cache module: when loading the bitmap, there is no need to consider the phenomenon of the image dislocation when the Oom and the Android container move quickly during the bitmap loading process.<br>Support to load network pictures and local images;<br>The memory management uses the LRU algorithm, better manages the bitmap memory;<br>Configurable line preempted thread count, cache size, Cache path, load Display animation, etc...</p><p style="margin-top:0px;margin-bottom:0px;padding:5px 0px;font-size:14px;font-family:tahoma, arial, ‘宋体‘;line-height:25.2000007629395px;white-space:normal;background-color:rgb(255,255,255);"><p style="margin-top:0px;margin-bottom:0px;padding:5px 0px;font-size:14px;font-family:tahoma, arial, ' song Body '; Line-height:25.2000007629395px;white-space:normal;background-color:rgb (255,255,255); "> <strong> 5, thinkandroid <br> <br> </strong> Project Address: https://github.com/white-cat/ThinkAndroid <br> There are the following modules: <br> (1 MVC module: Implementing the separation of views from the Model. <br> (2) IOC module: the IOC module in android, which is fully annotated to allow UI binding, reading of resources in res, and initialization of Objects. <br> (3) Database module: an ORM framework in Android that uses a thread pool to manipulate Sqlite. <br> (4) HTTP module: encapsulates HTTP data requests via HttpClient and supports asynchronous and synchronous loading. <br> (5) Cache module: with simple configuration and design can be well implemented cache, the cache can be configured arbitrarily <br> (6) Picture cache module: ImageView loading pictures without taking into account the image during the loading process of oom and the Android container rapid sliding when the picture dislocation Phenomenon. <br> (7) Configurator module: an easy to implement pairing configuration, the current configuration file can support the preference, the properties of the configuration to Access. <br> (8) Log printing module: can be quickly and easily to achieve log printing, support for the expansion of log printing, currently supports writing to SDcard local printing, as well as console printing <br> (9) Downloader module: Can be a simple implementation of multi-threaded download, background download, breakpoint continuation, download control, such as start, pause, Delete and so On. <br> (10) network status detection module: check the network status when it is changed </p></p><p style="margin-top:0px;margin-bottom:0px;padding:5px 0px;font-size:14px;font-family:tahoma, arial, ‘宋体‘;line-height:25.2000007629395px;white-space:normal;background-color:rgb(255,255,255);"><p style="margin-top:0px;margin-bottom:0px;padding:5px 0px;font-size:14px;font-family:tahoma, arial, ‘宋体‘;line-height:25.2000007629395px;white-space:normal;background-color:rgb(255,255,255);"><strong>6, loonandroid<br><br></strong>Project Address: Https://github.com/gdpancheng/LoonAndroid<br>The main modules Are:<br>(1) Auto-inject frame (only need to inherit the application within the Frame)<br>(2) Picture loading frame (multi-cache, automatic recovery, maximum memory Security)<br>(3) Network Request Module (inherits basically all HTTP requests Now)<br>(4) Eventbus (integration of an open source Framework)<br>(5) Validation Framework (integrated Open Source Framework)<br>(6) JSON parsing (supports parsing into collections or objects)<br>(7) database (i don't know who wrote it and forgot It)<br>(8) multi-threaded Breakpoint Download (automatically determine whether to support multi-threading, to determine whether it is redirected)<br>(9) Automatic Update module<br>(10) a series of tool classes</p></p><p style="margin-top:0px;margin-bottom:0px;padding:5px 0px;font-size:14px;font-family:tahoma, arial, ‘宋体‘;line-height:25.2000007629395px;white-space:normal;background-color:rgb(255,255,255);"><p style="margin-top:0px;margin-bottom:0px;padding:5px 0px;font-size:14px;font-family:tahoma, arial, ‘宋体‘;line-height:25.2000007629395px;white-space:normal;background-color:rgb(255,255,255);">One of the volley, 13 has been studied, extensibility is very good, personal more like the Style. Other such as android-async-http, afinal is also quite good.</p></p><p><p><br></p></p><p><p>This article from "small book" blog, reproduced please contact the author!</p></p><p><p>Introduction to six recommended open source Android (android) frameworks</p></p></span>
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service