An explanation of Android MVC Development Framework

Source: Internet
Author: User

1, the directory according to the need to add their own

Adapter for various adapters such as Recyclerview, ListView, etc.
Fragment Storage Fragment
Model stores data models, interfaces, data, etc.
Transform to store some custom controls
Utils Store some tool classes

2. catalog view

3. Main operation sequence

The Mainactivitu store is placed into four fargment and then implemented in the model write interface and implementation method. The interface writes callback method, Fargment inherits the callback interface, implements the method to return the data to the callback interface. And then display it in the UI layer

4. Code display

1.MailActivity Starting Fargment2.datamoldel Moldel entity class in Mailactivity
3.HomeDao interface, data function interface, callback method interface 4. implement method, inherit interface, populate callback method data 5.HTTP Util program Request JSON data parsing tool class
6.json request URL7. ADapter Adapter

An explanation of Android MVC Development Framework

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.