diff --git a/app/app.iml b/app/app.iml index 2865871..736ae2d 100644 --- a/app/app.iml +++ b/app/app.iml @@ -83,7 +83,6 @@ - diff --git a/app/src/main/java/cn/droidlover/xdroid/demo/ui/AboutActivity.java b/app/src/main/java/cn/droidlover/xdroid/demo/ui/AboutActivity.java index 64569b4..e5c6d16 100644 --- a/app/src/main/java/cn/droidlover/xdroid/demo/ui/AboutActivity.java +++ b/app/src/main/java/cn/droidlover/xdroid/demo/ui/AboutActivity.java @@ -3,8 +3,10 @@ import android.app.Activity; import android.os.Bundle; import android.support.v7.widget.Toolbar; +import android.view.View; import butterknife.BindView; +import butterknife.OnClick; import cn.droidlover.xdroid.base.XActivity; import cn.droidlover.xdroid.demo.R; import cn.droidlover.xdroid.router.Router; @@ -17,6 +19,7 @@ public class AboutActivity extends XActivity { @BindView(R.id.toolbar) Toolbar toolbar; + @Override public void initData(Bundle savedInstanceState) { initToolbar(); @@ -35,6 +38,18 @@ public void setListener() { } + @OnClick({ + R.id.tv_github + }) + public void clickEvent(View view) { + switch (view.getId()) { + + case R.id.tv_github: + WebActivity.launch(context, "https://github.com/limedroid/XDroid", "XDroid"); + break; + } + } + public static void launch(Activity activity) { Router.newIntent() .from(activity) diff --git a/library/library.iml b/library/library.iml index c868869..16f5836 100644 --- a/library/library.iml +++ b/library/library.iml @@ -65,14 +65,6 @@ - - - - - - - - @@ -81,6 +73,14 @@ + + + + + + + +