Three frameworks that are often used in Android development

1. XUtil framework

     Project address: https://github.com/wyouflf/xUtils

There are four main modules:

(1) Database module: The orm framework in Android , one line of code can add, delete, modify and check;
            support transactions, closed by default; you
            can customize table names, column names, foreign keys, unique constraints, NOT NULL constraints, CHECK through annotations Constraints, etc. (please annotate the table name and column name when confusing);
            support binding foreign keys, foreign key-related entities are automatically saved or updated when saving entities; foreign key-related entities are
            automatically loaded, and delayed loading is supported;

            Support chain expression query, more intuitive query semantics, refer to the following introduction or examples in the sample.          
  (2) Annotation module: The ioc framework in android can perform UI, resource and event binding in a fully annotated manner;
            the new event binding method can still work normally after being obfuscated by an obfuscation tool;
            currently it supports 20 commonly used events Binding, see ViewCommonEventListener class and package com.lidroid.xutils.view.annotation.event.
  (3) Network module: support synchronous and asynchronous requests;
            support large file upload, upload large files without oom;
            support GET, POST, PUT, MOVE, COPY, DELETE, HEAD, OPTIONS, TRACE, CONNECT requests;
            download support 301/302 redirection, supports setting whether to rename downloaded files according to Content-Disposition;
            requests that return text content (only GET requests are enabled by default) support caching, and can set the default expiration time and the expiration time for the current request.            
  (4) Picture caching module: When loading bitmap, you don’t need to consider the phenomenon of picture dislocation when oom and android container slide quickly during bitmap loading process;
            support loading network pictures and local pictures;
            memory management uses lru algorithm, better Manage bitmap memory;

            Configurable thread loading thread number, 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) Scheduling of network requests
(3) Prioritization of network requests
(4) Cache
(5) Multi-level cancellation request
(6) Linkage with Activity and life cycle (all network requests are canceled at the same time when the Activity ends)


3. ImageLoader framework

  • Support multi-threaded image loading
  • Provide rich detailed configuration, such as thread pool size, HTTP request items, memory and disk cache, parameter configuration when displaying pictures, etc.;
  • Provides double buffering
  • Support the monitoring of the loading process;
  • Provides a personalized display configuration interface for pictures;

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325217969&siteId=291194637