Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何复用P层或者M层 #176

Closed
yedajiang44 opened this issue Jan 6, 2018 · 6 comments
Closed

如何复用P层或者M层 #176

yedajiang44 opened this issue Jan 6, 2018 · 6 comments

Comments

@yedajiang44
Copy link

在主页面需要退出登录,想复用登录的P层或者M层,这该怎么做??

@Sum41forever
Copy link
Contributor

Sum41forever commented Jan 8, 2018

通用的P 可以用写通用的接口。在所有要实现通用逻辑的Activity里面去实现这个通用的接口就行了。

@yedajiang44
Copy link
Author

@Sum41forever 但是这样还是要重复写具体的实现啊,不知道是不是我没理解你说

@yedajiang44
Copy link
Author

@Sum41forever 懂了懂了!多谢大佬

@Sum41forever
Copy link
Contributor

@yedajiang44 你看下 新的一个issue 我写了一个简单的示范例子
Arms复用的Presenter 注入简单示例

@yedajiang44
Copy link
Author

@Sum41forever 豁然开朗哈哈哈!多谢多谢

@Sum41forever
Copy link
Contributor

@yedajiang44 之前issue那个不对,不符合实际业务场景,已经做了更新,你可以看看新的是怎么样实现复用的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants