Introduction to the Android MVP High Speed development Framework (Dileber's brief introduction)

Source: Internet
Author: User

Today I introduce an Android MVP framework: Dileber (Https://github.com/dileber/dileber.git)

QQ Group of official communication: 171443726


I personally qq:297165331~~ have what problem also can consult ~ ~

Ss

With the depth of Android development. More and more the activity class is simply omnipotent, which leads to too much code in the activity, which makes people feel uncomfortable.

In recent years, the MVP has started. So I learned about it, studied it, and took some information. Integrated a high-speed development framework.

I volley the Google development, and put a good dialog in. There are also some things that Android often use to encapsulate.

I open up this project and put it on GitHub. Https://github.com/dileber/dileber.git will continue to maintain this code in the future.

Let's give you a brief introduction.

What is an MVP:

m (model data) v (view display) p (persent help model and view for data Association)

MVP is probably an upgrade version of MVC. Almost the same effect will reduce the degree of coupling of the Code,

I added another layer in the frame, delegate (entrusted layer) will agent activity to do something to show

Why MVP is popular

The code is very clear and the first time you see this code (in the company see an employee using this pattern development). I was surprised, too. Very clear structure

The code showed a lot of things, loosely coupled development, and I fell in love at first sight, so I started learning and using MVP


Now let me introduce you to Dileber.


Dileber is based on the MVP model, no matter what an Android developer can create beautiful Android code in my framework


For example, the following is the project schema in Lib's MVP package in the Dileber project

Watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqv/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/dissolve/70/gravity /center ">


The model package is a model base class and there are no methods in the class at the moment, and I might add a method to it later when I change the framework. The model of this model base class can only be inherited by people.
Preseter package is the basic package, activity inherits Activitypresent fragment inheritance Fragmentpresent
My tutorial will explain how to use
The SCM package is a network request. Picture request package, I will encapsulate the network here inherit from this class can directly access the network request data, request the picture. Remember to add permission OH
The view package is the proxy object for the view, helping the activity agent handle the layout file
For example, the following is a sample package for Deliber



This is shown by inheriting the classes in Lib.

    My next tutorial will explain how dileber is used and how to develop at a high speed.

    Introduction to the Android MVP High Speed development Framework (Dileber's brief introduction)

    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.