Android LoonAndroid, dedicated for coders and laziness, androidloonandroid
Introduction
Http://www.eoeandroid.com/thread-324764-1-1.html
Architecture training video:
Http://pan.baidu.com/s/1mgv8HTm
Introduction: Download
Http://www.devstore.cn/code/info/74.html
The main modules are as follows:
(1) Automatic injection framework (only applications within the framework can be inherited)
(2) image loading framework (Multi-cache, automatic recovery to maximize Memory Security)
(3) network request module (inheriting basically all current http requests)
(4) eventbus (integrated with an open-source framework)
(5) Verification Framework (integrated open-source framework)
(6) json parsing (supports parsing to a set or object)
(7) database (I don't know which one has forgotten it)
(8) multi-thread breakpoint download (automatically determines whether multithreading is supported and whether redirection is supported)
(9) automatic update Module
(10) A series of tools
Where
The Framework supports configuration file configuration assets/mvc. properties.
The entire framework is divided into the following aspects:
I. Automatic injection framework
1 Support layout
2. view supported
3. Support for various event injection of view
4. Method injection is supported.
5. Support injection of child parent Layout
6. Support overwriting of sub-parent events
7. Resource file injection
8. Network request Injection
9 injection verified in the input box
Ii. image loading framework
When a view is injected, if it is listview and isasy = true is set
Then, the image loading logic starts after the image is automatically injected to the image sliding stop (the Framework injects OnScrollListener to you)
If you want to implement OnScrollListener by yourself, inherit OnScrollLoaderListener and
GlobalConfig. getInstance (). setOnScrollLoaderListener transmits your rolling listener
1. automatic release is supported.
2. Local images can be loaded.
3 Automatic Cache
Iii. Network request module
1. Use non-Injection
FastHttp
---------------------- Synchronize ----------------------
You need to open new threads and construct handler on your own.
Network request encapsulation:
1. Support synchronous get requests
2. Support synchronous post requests
3. Support synchronous webserver requests
4. Support synchronous form requests
---------------------- Asynchronous ----------------------
No need to open a new thread, no need to handler
5. support asynchronous get requests
6. support asynchronous post requests
7. support asynchronous webserver requests
8 support asynchronous form requests
---------------------- Round robin ----------------------
9 support get periodic training
10 support regular post training
11 support regular webserver round robin
12 support custom configuration file InternetConfig to configure the encoding format and polling time (30 seconds by default)
(Note: The returned data ResponseEntity is obtained based on getStatus.
If FastHttp. result_ OK is returned, the returned result is normal.
Network error if FastHttp. result_net_err
The returned data is parsed as needed by the string)
2. Use
FastHttpHander
---------------------- Inject ----------------------
Request Configuration
InternetConfig config = new InternetConfig ();
Config. setKey (1 );
The following situations are described:
Search for @ InjectHttpOk and @ InjectHttpErr first
1. If no key is set, the system automatically searches for @ InjectHttp. No key is set.
2. If the key is set to automatically search for @ InjectHttp with the same key as it
3. If you cannot find the @ InjectHttp with the same key as the key, the system automatically finds the method without setting the key.
4. Integrated eventbus
Further reduce Code Coupling
V. input box Verification
You only need to enter rules
6. Convert Json to bean and set
7. Integrated an open-source database to support orm
8. Supports multi-thread download and Automatic Determination of multi-thread support
9. Integrated database framework
All tools starting with Handler