Android MVC (i) Introduction to MVC

Source: Internet
Author: User

Today, I have friends and I mentioned the MVC pattern in Android, I am here to summarize, if there is something wrong, we heartily criticize the advice

Introduction to the MVC framework

The full name of MVC is the model View Controller, which is the abbreviation for the models-view-controller, a software design paradigm that organizes the code with a method of business logic, data, and interface display separation. Aggregating business logic into a single component does not require rewriting business logic while improving and personalizing the interface and user interaction. MVC is uniquely developed to map the traditional input, processing, and output functions in a logical graphical user interface structure.

    • A model (model) represents an application core (such as a list of database records)-----------models represent data and business rules
    • View (view) display data (database records)-----------views are the interfaces that users see and interact with
    • Controller (Director) processes input (writes to database records)-----------controller accepts user input and invokes models and views to complete user needs

The purpose of using MVC

Separate the implementation code for M and v so that the same program can use a different representation

c The purpose of existence

Ensure that M and V are synchronized, and that once M is changed, V should be updated synchronously


Android MVC (i) Introduction to MVC

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: 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.