Head First: Android???????????
?????Github ???????[ 2016/12/9 13:41:40 ] ??????????????? Android
?????????????????
??????????? ????? ?????С??? ??????????????????????????????????С?????????????????????? ?????????????????? ??? ——??????
??????????????????
????????????????????????????
?????????????????????д????????????д????????????????????????????????????д??????????????£????????£????debug????????????????????????????????????????debug?????????????????????????????????????????????????????????????
?????????????Щ???????????????£???????????????д????????
????????????????
??????????е???????????Activity?????д????????????±????
?????????????????д???????????????????д????????????????????????????????????д?????????????????????????? Android ??????????д????????
??????????????????????MVP??????????д??????????????????Junitд?????????????????JVM????????????????Android?????С?
?????????????????? ????ν??????????MVP????
??????????
????д?????????棬????????????д????????????λ???????????????????????
????????????д?????????
public class CreditCardPresenter extends BasePresenter<CreditCardContract.View?? CreditCardContract.Model> implements CreditCardContract.Presenter {
//??????????
public void getCreditCards() {
getModel().getCreditCards()
.subscribe(new Subscriber<List<CreditCard>>(){
@Overridec
public void onNext(List<CreditCard> creditCards) {
getView().showCreditCards(creditCards);
}
@Override
public void onCompleted() {
getView().loadCompleted();
}
@Override
public void onError(Throwable e) {
getView().showError(e);
}
});
}
}
??????????????????????б???????????????????????????
????getView().showCreditCards(creditCards);
????getView().loadCompleted();
???????????????????????????????
????getView().showError(e);
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11