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

疑惑:最终实现V层还是持有P的对象,并不是通过持有接口来通信。 #1

Closed
ningStillIn opened this issue Dec 6, 2018 · 2 comments

Comments

@ningStillIn
Copy link

public class SingleInterfaceActivity extends BaseMVPActivity
implements SingleInterfaceContract.View {
...
@OverRide
protected SingleInterfacePresenter createPresenter() {
return new SingleInterfacePresenter();
}
...

SingleInterfaceActivity 还是通过持有SingleInterfacePresenter的对象来和SingleInterfacePresenter通信的,并没有使用SingleInterfaceContract中SingleInterfacePresenter的接口:
interface Presenter {
void getData(int curPage);
}
来和SingleInterfacePresenter进行通信。
这个是为什么,望解惑,谢谢

serge66 added a commit to serge66/MVPAdvanceDemo that referenced this issue Dec 17, 2018
@serge66
Copy link
Owner

serge66 commented Dec 17, 2018

@ningStillIn 哈喽 大兄弟 去看下这个仓库 https://github.com/serge66/MVPAdvanceDemo

@ningStillIn
Copy link
Author

@serge66 嗯嗯 刚看了一下 很完美。

@serge66 serge66 closed this as completed Feb 11, 2019
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

2 participants