Home  >  Article  >  Java  >  What are the three major frameworks for android development?

What are the three major frameworks for android development?

青灯夜游
青灯夜游Original
2020-10-16 13:56:4010840browse

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.

What are the three major frameworks for android development?

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn