Android Studio Plugin Mvphelper, one click to generate MVP code

Source: Internet
Author: User

MVP prevalence, the most complaints heard is how to write so many interfaces, then the author provides a plug-in, the automatic generation of these interfaces declaration. Interested can also learn the plug-in writing, according to their usual needs to modify, to provide development efficiency.

Mvphelper

A plugin for Intellj idea and Android studio that can create interfaces for MVP and implement classes, freeing hands.

Github Address:

    • Https://github.com/githubwing/MVPHelper

Attention

For MVP mode, defining a contract class to place the model View Presenter interface greatly reduces the class file.

Replace the normal interface with the following:

1  Public InterfaceGoodsinfocontract {2 3      Public Interfaceview{4     5     }6      Public Interfacepresenter{7     8     }9      Public Interfacemodel{Ten      One     } A  -}

When you use plugins in the contract class, the effect is as follows:


How to use

Search Mvphelper in the plugin repository

method of manual installation;

Download Mvphelper.jar

(Https://github.com/githubwing/MVPHelper/raw/master/MVPHelper.jar)

Then install the plugin:

Inside the contract class or presenter class, click the Generate menu and select Mvphelper to generate the corresponding file.

Android Studio Plugin Mvphelper, one click to generate MVP code

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.