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

如何使用 loadDataWithBaseURL 这个方法? #7

Closed
jack-laowang opened this issue Jun 11, 2017 · 5 comments
Closed

如何使用 loadDataWithBaseURL 这个方法? #7

jack-laowang opened this issue Jun 11, 2017 · 5 comments

Comments

@jack-laowang
Copy link

No description provided.

@Justson
Copy link
Owner

Justson commented Jun 11, 2017

mAgentWeb.getLoader().loadDataWithBaseURL();   //推荐
或者
mAgentWeb.getWebCreator().get().loadDataWithBaseURL();

@jack-laowang
Copy link
Author

我现在是需要用 mAgentWeb.getLoader().loadDataWithBaseURL();

但是 mAgentWeb = AgentWeb.with(this)
.setAgentWebParent(webviewLayout, new LinearLayout.LayoutParams(-1, -1))
.useDefaultIndicator()// 使用默认进度条
.defaultProgressBarColor()
.createAgentWeb()// 使用默认进度条
.ready()
.go();

这样子初始化,因为我没用到go(url), 不想用go, 要怎么初始化?

@Justson
Copy link
Owner

Justson commented Jun 13, 2017

新版本 , go("") ;

@jack-laowang
Copy link
Author

jack-laowang commented Jun 13, 2017

 如何设置这个属性?

android:scrollbars="none"

@Justson
Copy link
Owner

Justson commented Jun 15, 2017

mAgentWeb.getWebCreator().get().setVerticalScrollBarEnabled(); //or
mAgentWeb.getWebCreator().get().setHorizontalScrollBarEnabled();
mAgentWeb.getWebCreator().get()拿到的是 WebView , 这里可以进行你想要的操作 。

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

2 participants