The three major frameworks for android development are: 1. XUtil framework, which mainly includes database module, annotation module, network module, and image cache module; 2. volley framework; 3. ImageLoader framework.
1. XUtil framework
Project address: https:// github.com/wyouflf/xUtils
There are four main modules:
(1) Database module: orm framework in Android, one line The code can be added, deleted, modified, and checked;
Supports transactions, closed by default;
You can customize table names, column names, foreign keys, unique constraints, NOT NULL constraints, CHECK constraints, etc. through annotations (when confusion is needed) Please annotate the table name and column name);
Supports binding foreign keys, and entities associated with foreign keys are automatically saved or updated when saving entities;
Automatically loads entities associated with foreign keys, supporting delayed loading;
Support chain expression query, more intuitive query semantics, refer to the following introduction or the example in the sample.
(2) Annotation module: the ioc framework in android, the complete annotation method can be used for UI, resource and event binding; The tool can still work normally after being obfuscated;
currently supports 20 commonly used event bindings, see the ViewCommonEventListener class and package com.lidroid.xutils.view.annotation.event.
(3) Network module: supports synchronous and asynchronous requests;
Supports large file uploads, uploading large files will not cause oom;
Supports GET, POST, PUT, MOVE, COPY, DELETE, HEAD, OPTIONS, TRACE, CONNECT requests;
Downloads support 301/302 redirection, and support setting whether to rename downloaded files based on Content-Disposition;
Requests that return text content (only GET requests are enabled by default) support caching, You can set the default expiration time and the expiration time for the current request.
(4) Image caching module: When loading bitmap, there is no need to consider the oom and image misalignment that occurs when the android container slides quickly during the bitmap loading process;
Supports loading network images and local images;
Memory management uses the lru algorithm to better manage bitmap memory;
Configurable number of thread loading threads, cache size, cache path, loading display animation, etc...
2, volley
Project address : https://github.com/smanikandan14/Volley-demo
(1) Asynchronous download of JSON, images, etc. ;
(2) Network request sorting (scheduling)
(3) Network request priority processing
(4) Caching
(5) Multi-level cancellation of requests
(6) and Linkage between Activity and life cycle (cancel all network requests at the same time when Activity ends)
3. ImageLoader framework
##Supports multi-threaded image loading
Provides rich detailed configuration, such as thread pool size, HTTP request items, memory and disk cache, parameter configuration when displaying images, etc.;
-
Provide double cache
Support monitoring of the loading process;
Provide pictures Personalized display configuration interface;
The above is the detailed content of What are the three major frameworks for android development?. For more information, please follow other related articles on the PHP Chinese website!

Start Spring using IntelliJIDEAUltimate version...

When using MyBatis-Plus or other ORM frameworks for database operations, it is often necessary to construct query conditions based on the attribute name of the entity class. If you manually every time...

Java...

How does the Redis caching solution realize the requirements of product ranking list? During the development process, we often need to deal with the requirements of rankings, such as displaying a...

Conversion of Java Objects and Arrays: In-depth discussion of the risks and correct methods of cast type conversion Many Java beginners will encounter the conversion of an object into an array...

Solutions to convert names to numbers to implement sorting In many application scenarios, users may need to sort in groups, especially in one...

Detailed explanation of the design of SKU and SPU tables on e-commerce platforms This article will discuss the database design issues of SKU and SPU in e-commerce platforms, especially how to deal with user-defined sales...

How to set the SpringBoot project default run configuration list in Idea using IntelliJ...


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SublimeText3 Chinese version
Chinese version, very easy to use

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

SublimeText3 Mac version
God-level code editing software (SublimeText3)