From 3ebb8f9133d45aa529c586bb32a55936a96cabae Mon Sep 17 00:00:00 2001 From: "526966586@qq.com" <526966586@qq.com> Date: Tue, 19 Jun 2018 15:15:06 +0800 Subject: [PATCH] pxy --- app/build.gradle | 7 ++++--- app/src/main/java/pxy/com/test/MainActivity.java | 10 +++++----- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index e924247..0518109 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -36,9 +36,10 @@ dependencies { implementation 'com.android.support:appcompat-v7:26.1.0' - //compile 'com.github.xinyupu.pangjiao:pangjiao:1.1.17' - //annotationProcessor 'com.github.xinyupu.pangjiao:pangjiao:1.1.17' + + // implementation 'com.github.xinyupu:pangjiao:1.1.29' + //annotationProcessor 'com.github.xinyupu.pangjiao:pangjiao:1.1.29' implementation project(':pangjiao') - annotationProcessor project(':pangjiao') + annotationProcessor project(':pangjiao') } diff --git a/app/src/main/java/pxy/com/test/MainActivity.java b/app/src/main/java/pxy/com/test/MainActivity.java index 3bab6ee..dddd49f 100644 --- a/app/src/main/java/pxy/com/test/MainActivity.java +++ b/app/src/main/java/pxy/com/test/MainActivity.java @@ -8,6 +8,7 @@ import com.pxy.pangjiao.compiler.injectview.annotation.OnClick; import com.pxy.pangjiao.compiler.mpv.annotation.AutowireProxy; import com.pxy.pangjiao.compiler.mpv.annotation.Views; +import com.pxy.pangjiao.mvp.viewmodel.views.PJAppCompatActivity; import com.pxy.pangjiao.mvp.viewmodel.views.PJAppMVVPCompatActivity; import pxy.com.application.IMemberPresent; @@ -18,7 +19,7 @@ import pxy.com.model.UserView; @Views -public class MainActivity extends PJAppMVVPCompatActivity implements IMainActivityView { +public class MainActivity extends PJAppCompatActivity implements IMainActivityView { @AutowireProxy @@ -28,10 +29,9 @@ public class MainActivity extends PJAppMVVPCompatActivity implements IMainActivi public ITouristService touristService; - private User user; - @Override - public void initView() { + public int initView() { + return R.layout.activity_main; } @Override @@ -42,7 +42,7 @@ public void initData() { @OnClick(R.id.request) public View.OnClickListener btn_Click=v -> { - touristService.active(user); + }; @Override