Android High Performance Development framework "kjframeforandroid"

Source: Internet
Author: User

Problem description
Kjframeforandroid, also known as Kjlibrary, is a framework that helps to develop quickly. With Kjframeforandroid, you can complete HTTP requests, network picture loading, database data saving, or reading with just one line of code.

Kjframeforandroid contains almost all the tools that are necessary for Android development.
Kjframeforandroid references Many of the internationally renowned Android frameworks such as volley, Sync-http, getting started with lower thresholds, more comprehensive HTTP requests, thoughtful bitmap network loading, perfect functionality and unaffected by confusion ...
Kjframeforandroid Minimum compatible Android 3.0

Many friends are asking, what is the difference between kjframeforandroid and Xutils, Afinal, Thinkandroid, After you have seen the source code of such a framework, you will be very intuitive to find: kjframeforandroid project structure and code more intuitive and easy to understand, project demo and API documentation more complete, more critical is to use more simple and easy to get started.

=========================== each module introduces ======================
Uilibrary Module
Uilibrary contains two parts widgets (controls), topology (Android frame inheritance chain)

The Widgets control section of Uilibrary mainly encapsulates the common UI controls, in order not to make the project jar package too large, we only introduce the controls that are bound to be used in development, such as: Kjlistview that can be pulled up and down, kjscrollview that can be pulled up and down, Can double-finger zoom double-click to zoom two-finger rotation of the scaleimageview, etc... For more information, please check the contents of the Org.kymjs.aframe.widget package in the project file yourself.
The Uilibrary-Topology Topology section contains a control initialization method that uses the IOC design idea: UI binding can be annotated, and settings listening, both in activity and fragment can be bound by a line of code control and click to listen It also contains layout interfaces that are common in current application development, such as slide-slip effects, efficient bottom tab navigation, and 3D effect switching. At the same time Uilibrary defines the perfect baseactivity and basefragment for the developer, the developer can get all the functions of topology part by manual inheritance.

Bitmaplibrary Module
One line of code for network picture loading (can be ImageView or any view): Kjb.display (View, "http://xxx.xxx.xxx");
Any view (ImageView set SRC, normal view set BG) Loading the picture does not need to consider the image during the loading process of oom and the Android container rapid sliding when the picture dislocation, and do not have to consider the image loading process of oom. Default use of memory LRU algorithm + disk LRU algorithm cache picture

Httplibrary Module
HTTP requests can be implemented in one line of code: Kjh.urlpost ("http://www.eoeandroid.com", params, callback);
can also be a line of code to achieve file or picture upload and download. Kjh.download (URL, params, callback);
Kjlibrary defaults to caching data for all HTTP traffic, with a cache time of 5 minutes. This is done not only to save the user's mobile phone traffic, but also to reduce the server pressure
The Httplibrary module uses the httpclient and httpurlconnection two implementations to realize network communication, data upload, multi-threaded breakpoint download.

Dblibrary Module
Can be a line of code to the database for the deletion and deletion of operations: Kjdb.update (); Kjdb.add (); .......
Contains the ORM framework in Android, and uses a thread pool to manipulate SQLite, and a line of code can be used for additional pruning. Support one-to-many, many-to-one queries.

GitHub Project Address:
Https://github.com/kymjs/KJFrameForAndroid
Alternate Project Address:
Http://git.oschina.net/kymjs/KJFrameForAndroid Solution 1
Solutions 2
That's good.

Android High Performance Development framework "kjframeforandroid"

Related Article

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.