mAgentWeb = AgentWeb.with(activity)
.setAgentWebParent(rootview, new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT))
.closeIndicator()
.setAgentWebWebSettings(getSettings())
.setOpenOtherPageWays(DefaultWebClient.OpenOtherPageWays.DERECT)
.createAgentWeb()
.ready()
.go("file:///android_asset/social/h5/home.html");
public IAgentWebSettings getSettings() {
return new AbsAgentWebSettings() {
private AgentWeb mAgentWeb;
@OverRide
protected void bindAgentWebSupport(AgentWeb agentWeb) {
this.mAgentWeb = agentWeb;
}
@Override
public IAgentWebSettings toSetting(WebView webView) {
IAgentWebSettings iAgentWebSettings = super.toSetting(webView);
WebSettings webSettings = iAgentWebSettings.getWebSettings();
webSettings.setAllowFileAccessFromFileURLs(true);
webSettings.setAllowUniversalAccessFromFileURLs(true);
return iAgentWebSettings;
}
};
}
以上是我的配置,网页中有一个a标签,点击后跳转到另一个本地网页,现在的问题是点了以后没反应 ,我在一个空项目中创建一个webview,然后重写一个空的webviewclient是可以跳转的。
所以想问一下, 是哪个设置项屏蔽了a标签的跳转呢,需要怎么改,谢谢~
mAgentWeb = AgentWeb.with(activity)
.setAgentWebParent(rootview, new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT))
.closeIndicator()
.setAgentWebWebSettings(getSettings())
.setOpenOtherPageWays(DefaultWebClient.OpenOtherPageWays.DERECT)
.createAgentWeb()
.ready()
.go("file:///android_asset/social/h5/home.html");
public IAgentWebSettings getSettings() {
return new AbsAgentWebSettings() {
private AgentWeb mAgentWeb;
@OverRide
protected void bindAgentWebSupport(AgentWeb agentWeb) {
this.mAgentWeb = agentWeb;
}
以上是我的配置,网页中有一个a标签,点击后跳转到另一个本地网页,现在的问题是点了以后没反应 ,我在一个空项目中创建一个webview,然后重写一个空的webviewclient是可以跳转的。
所以想问一下, 是哪个设置项屏蔽了a标签的跳转呢,需要怎么改,谢谢~