mirror of
https://github.com/WuXiaolong/AndroidMVPSample.git
synced 2025-06-07 05:44:37 +08:00
Merge remote-tracking branch 'origin/master'
# Conflicts: # build.gradle # gradle/wrapper/gradle-wrapper.properties
This commit is contained in:
commit
d4a48d6f25
24
README.md
24
README.md
@ -1,15 +1,21 @@
|
|||||||
# Android MVP 实例
|
> MVP+Retrofit+RxJava实践小结,一点经验之谈,希望您看完这篇文章,有所收获!
|
||||||
简单的请求天气功能,演示Android MVP是如何使用的
|
|
||||||
|
|
||||||
# 效果预览
|
|
||||||

|
|
||||||
|
|
||||||
# 详见博客
|
# 详见博客
|
||||||
[http://wuxiaolong.me/2015/09/23/AndroidMVPSample/](http://wuxiaolong.me/2015/09/23/AndroidMVPSample/)
|
[Android MVP+Retrofit+RxJava实践小结](http://wuxiaolong.me/2016/06/12/mvpRetrofitRxjava/)
|
||||||
|
|
||||||
# AndroidProgrammer
|
# 推荐阅读
|
||||||
我的微信公众号:Android高手进阶之路,让我们共同学习,每天进步一点点。欢迎微信扫一扫关注。
|
1、[Android MVP 实例](http://wuxiaolong.me/2015/09/23/AndroidMVPSample/)
|
||||||

|
|
||||||
|
2、[Android Retrofit 2.0使用](http://wuxiaolong.me/2016/01/15/retrofit/)
|
||||||
|
|
||||||
|
3、[RxJava](http://wuxiaolong.me/2016/01/18/rxjava/)
|
||||||
|
|
||||||
|
4、[RxBus](http://wuxiaolong.me/2016/04/07/rxbus/)
|
||||||
|
|
||||||
|
# 微信公众号
|
||||||
|
欢迎微信扫一扫关注:不止于技术分享,每天进步一点点。
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
# 关于作者
|
# 关于作者
|
||||||
[点击查看](http://wuxiaolong.me/about/)
|
[点击查看](http://wuxiaolong.me/about/)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
apply plugin: 'com.android.application'
|
apply plugin: 'com.android.application'
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion 23
|
compileSdkVersion 24
|
||||||
buildToolsVersion "23.0.2"
|
buildToolsVersion "23.0.2"
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
@ -21,8 +21,8 @@ android {
|
|||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile fileTree(include: ['*.jar'], dir: 'libs')
|
compile fileTree(include: ['*.jar'], dir: 'libs')
|
||||||
compile 'com.android.support:appcompat-v7:23.4.0'
|
compile 'com.android.support:appcompat-v7:24.2.0'
|
||||||
compile 'com.wuxiaolong.androidutils:androidutils:1.0.2'
|
compile 'com.wuxiaolong.androidutils:androidutils:1.0.5'
|
||||||
compile 'com.jakewharton:butterknife:7.0.1'
|
compile 'com.jakewharton:butterknife:7.0.1'
|
||||||
compile 'com.squareup.retrofit2:retrofit:2.0.2'
|
compile 'com.squareup.retrofit2:retrofit:2.0.2'
|
||||||
compile 'com.squareup.okhttp3:logging-interceptor:3.1.2'
|
compile 'com.squareup.okhttp3:logging-interceptor:3.1.2'
|
||||||
|
@ -18,6 +18,14 @@ import butterknife.ButterKnife;
|
|||||||
import rx.Subscription;
|
import rx.Subscription;
|
||||||
import rx.subscriptions.CompositeSubscription;
|
import rx.subscriptions.CompositeSubscription;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by WuXiaolong
|
||||||
|
* on 2015/9/23.
|
||||||
|
* github:https://github.com/WuXiaolong/
|
||||||
|
* weibo:http://weibo.com/u/2175011601
|
||||||
|
* 微信公众号:吴小龙同学
|
||||||
|
* 个人博客:http://wuxiaolong.me/
|
||||||
|
*/
|
||||||
public class BaseActivity extends AppCompatActivity {
|
public class BaseActivity extends AppCompatActivity {
|
||||||
public Activity mActivity;
|
public Activity mActivity;
|
||||||
|
|
||||||
|
@ -15,8 +15,13 @@ import butterknife.Bind;
|
|||||||
import butterknife.ButterKnife;
|
import butterknife.ButterKnife;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by WuXiaolong on 2015/9/23.
|
|
||||||
* 由Activity/Fragment实现View里方法,包含一个Presenter的引用
|
* 由Activity/Fragment实现View里方法,包含一个Presenter的引用
|
||||||
|
* Created by WuXiaolong
|
||||||
|
* on 2015/9/23.
|
||||||
|
* github:https://github.com/WuXiaolong/
|
||||||
|
* weibo:http://weibo.com/u/2175011601
|
||||||
|
* 微信公众号:吴小龙同学
|
||||||
|
* 个人博客:http://wuxiaolong.me/
|
||||||
*/
|
*/
|
||||||
public class MainActivity extends MvpActivity<MainPresenter> implements MainView {
|
public class MainActivity extends MvpActivity<MainPresenter> implements MainView {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user