Skip to content

本地html跳转无响应 #762

@woleigeququ

Description

@woleigeququ

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标签的跳转呢,需要怎么改,谢谢~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions