Android frame loonandroid, code farm lazy dedicated

Source: Internet
Author: User

Introduced

Http://www.eoeandroid.com/thread-324764-1-1.html

Architecture Training Videos:

Http://pan.baidu.com/s/1mgv8HTm

Introduction: Download

Http://www.devstore.cn/code/info/74.html


The main modules are:
(1) Auto-inject frame (only need to inherit the application within the frame)
(2) Picture loading frame (multi-cache, automatic recovery, maximum memory security)
(3) Network request module (inherits basically all HTTP requests now)
(4) Eventbus (integration of an open source framework)
(5) Validation Framework (integrated open source framework)
(6) JSON parsing (supports parsing into collections or objects)
(7) database (I don't know who wrote it and forgot it)
(8) Multi-threaded breakpoint Download (automatically determine whether to support multi-threading, to determine whether it is redirected)
(9) Automatic Update module
(10) A series of tool classes



which
Framework support configuration file configuration Assets/mvc.properties
The framework is divided into the following areas
One: Automatic injection frame
1 Support Layout
2 Support View
3 support for various event injection of view
4 Support Method Injection
5 support for injection of child parent layout
6 support for overwrite of child parent event
7 support for resource file injection
8 Support for Network request injection
9 Injection of input box validation
Two: Picture loading frame
When the view is injected, if it is a ListView and set the Isasy=true
Then the automatic injection of the picture slide stop just start loading the picture logic (the framework injected you with Onscrolllistener)
If you want to implement Onscrolllistener yourself, then inherit Onscrollloaderlistener and then
Globalconfig.getinstance (). Setonscrollloaderlistener put your rolling monitoring in.
1 Support auto-release
2 support for loading local images
3 Automatic Caching
Three: Network request module
1 non-injection please use
Fasthttp
----------------------Sync----------------------
You need to open new threads and constructs yourself handler
Network Request Class Encapsulation:
1 support for synchronous GET requests
2 support for synchronous post requests
3 support for synchronous webserver requests
4 support for synchronizing form requests
----------------------Asynchronous----------------------
No need to open a new thread without handler
5 support for asynchronous get requests
6 support for asynchronous post requests
7 support for asynchronous webserver requests
8 support for asynchronous form requests
----------------------Polling----------------------
9 support for Get timing rotation
10 Support Post Timing rotation
11 Support webserver timed polling
12 Support for custom profiles Internetconfig can configure encoding format and polling time (default is 30 seconds)
(Note: The returned data responseentity, based on the GetStatus to get the status
If FASTHTTP.RESULT_OK is returned to normal
If Fasthttp.result_net_err is a network error
The returned data format is parsed into the required format for the string itself)

2 Injection Please use
Fasthttphander
----------------------Injection----------------------
Request Configuration
Internetconfig config = new Internetconfig ();
Config.setkey (1);
Here are some of the following cases
Priority for @injecthttpok and @injecthttperr
1 do not set key then go back automatically to find the @injecthttp method without setting key
2 If set key is automatically looking for and it equals key @injecthttp
3 If you set key if you cannot find a @injecthttp that is equal to key, you will automatically find a way to not set the key.
Four: integrated with Eventbus
Further reduce the coupling of the Code
Five: Input Box validation
Only need to enter rules
Six: JSON converted to beans and collections
Seven: Integration of an open source database to support ORM
Eight: Support multi-threaded download, automatically determine whether to support multithreading
IX: Integrated database Framework

All handler start with a tool class



Android frame loonandroid, code farm lazy dedicated

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.