The first knowledge of Android learning Xutils

Source: Internet
Author: User

   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

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.