Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

安卓上集成失败 #22

Closed
YQjiuhao opened this issue May 16, 2018 · 4 comments
Closed

安卓上集成失败 #22

YQjiuhao opened this issue May 16, 2018 · 4 comments

Comments

@YQjiuhao
Copy link

我在安卓上安卓文档上的方式集成,使用的时候看不到效果,在iOS上能顺利使用。是什么原因啊?
集成方式:
build.gradle中添加依赖
classpath 'com.alibaba.android:bindingx-core:1.0.1'
classpath 'com.alibaba.android:bindingx_weex_plugin:1.0.1'
classpath 'org.weex.plugin:plugin-loader:1.0.0'
Weex加载

 WeexPluginContainer.loadAll(getApplicationContext());

界面实现代码
var result =
BindingX &&
BindingX.bind(
{
eventType: "scroll",
anchor: this.$refs["left-list-view"].ref;,
props: [
{
element: this.$refs["right-list-view"].ref,
expression: "y*1",
property: "scroll.contentOffsetY"
}
]
},
e => {}
);

@Rowandjj
Copy link
Contributor

  1. use compile if your gradle version is old than 3.x, or implementation otherwise;
  2. we recommend that register bindingx manually by the BindingX#register() function (the plugin loader will be removed in next version);
  3. if that not work, please refer our playground source code.

@Rowandjj
Copy link
Contributor

@YQjiuhao hi. I'll close this issue for now because of no more active discussion. If your problem not solved, you can reopen it later.
Thanks.

@YQjiuhao
Copy link
Author

好的,谢谢

@ding-hai
Copy link

see #31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants