Today I studied Xutils, summed up, learn and review it.
Xutils Introduction
Xutils contains a lot of useful Android tools.
Xutils supports large file uploads, more comprehensive HTTP request protocol support (10 predicates), more flexible ORM, more event annotations support, and is not affected by confusion ...
XUITLS Minimum compatible Android 2.2 (API Level 8)
Currently Xutils has four main modules:
dbutils Module
The ORM framework in Android, a line of code can be used for the enhancement and deletion;
Support transactions, closed by default;
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);
Support for binding foreign keys, saving entities when the foreign key associated entities are automatically saved or updated;
Automatic loading of foreign key associated entities, support delay loading;
Support chain expression query, more intuitive query semantics, refer to the following introduction or sample examples.
viewutils module:
The IOC framework in Android enables UI, resource and event bindings in a fully annotated manner;
New event binding mode, the use of obfuscation tools can still work properly;
httputils module:
Support synchronous, asynchronous requests;
Support large file upload, upload large files will not oom (memory overflow);
Support Get,post,put,move,copy,delete,head,options,trace,connect request;
Download support 301/302 Redirect, support setting whether to rename downloaded files according to Content-disposition;
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.
bitmaputils 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.
Support to load network pictures and local images;
The memory management uses the LRU algorithm, better manages the bitmap memory;
Configurable line preempted thread count, cache size, cache path, load display animation, etc...
The following permissions are required to use the Xutils rapid development Framework:
<uses-permission android:name= "Android.permission.INTERNET"/>
<uses-permission android:name= "Android.permission.WRITE_EXTERNAL_STORAGE"/>
The first knowledge of Android learning Xutils