-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
217 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
app/src/main/java/com/sdwfqin/quickseed/contract/MainContract.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.sdwfqin.quickseed.contract; | ||
|
||
import com.sdwfqin.quicklib.base.BasePresenter; | ||
import com.sdwfqin.quicklib.base.BaseView; | ||
|
||
/** | ||
* 描述:为啥是空的呢?因为没有module啊。 | ||
* | ||
* @author zhangqin | ||
* @date 2018/2/8 | ||
*/ | ||
public interface MainContract { | ||
|
||
interface View extends BaseView { | ||
} | ||
|
||
interface Presenter extends BasePresenter<View> { | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
app/src/main/java/com/sdwfqin/quickseed/presenter/MainPresenter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.sdwfqin.quickseed.presenter; | ||
|
||
import com.sdwfqin.quicklib.base.RxPresenter; | ||
import com.sdwfqin.quickseed.contract.MainContract; | ||
|
||
/** | ||
* 描述: | ||
* | ||
* @author zhangqin | ||
* @date 2018/2/8 | ||
*/ | ||
public class MainPresenter extends RxPresenter<MainContract.View> implements MainContract.Presenter { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
quicklib/src/main/java/com/sdwfqin/quicklib/base/BasePresenter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.sdwfqin.quicklib.base; | ||
|
||
/** | ||
* 描述:Presenter基类 | ||
* | ||
* @author zhangqin | ||
*/ | ||
public interface BasePresenter<T extends BaseView> { | ||
|
||
void attachView(T view); | ||
|
||
void detachView(); | ||
} |
26 changes: 26 additions & 0 deletions
26
quicklib/src/main/java/com/sdwfqin/quicklib/base/BaseView.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.sdwfqin.quicklib.base; | ||
|
||
/** | ||
* 描述:View的基类 | ||
* | ||
* @author zhangqin | ||
*/ | ||
public interface BaseView { | ||
|
||
/** | ||
* 显示吐司 | ||
* | ||
* @param msg | ||
*/ | ||
void showMsg(String msg); | ||
|
||
/** | ||
* 显示加载动画 | ||
*/ | ||
void showProgress(); | ||
|
||
/** | ||
* 关闭加载动画 | ||
*/ | ||
void hideProgress(); | ||
} |
Oops, something went wrong.