简体   繁体   中英

Android studio - MVP Pattern

I'm using MVP design pattern in an android studio app. I have login and signup activities which both have some functions which are the same. Is there a way no to copy paste the same functions from one view to the other one?

Since you're using MVP, you can make that common function in your presenter and then use it for login and signup. Hope it helps! :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM