【问题标题】:Android (Java) - cr_BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid:Android (Java) - cr_BindingManager:无法调用 deniedVisibility() - 从未看到 pid 的连接:
【发布时间】:2016-08-28 14:18:49
【问题描述】:

我试图用两个片段制作一个安卓应用,每个片段都有一个 webview 窗口

我的 MainActivity 类中的第一个

WebView mWebView = (WebView) findViewById(R.id.webview_today);

    mWebView.setWebViewClient(new WebViewClient());

    Log.wtf("System.out", "Open VPToday");
    mWebView.loadUrl("myLink");

片段类中的第二个

View rootView = inflater.inflate(R.layout.fragment_morgen, container, false);

    WebView webView = (WebView)rootView.findViewById(R.id.webview_tomorrow);

    webView.loadUrl("myLink2");

    webView.setWebViewClient(new WebViewClient());

但是每次开始我都会收到警告“W/cr_BindingManager:无法调用确定的Visibility() - 从未看到 pid 的连接:[一些数字]”,当我转到片段时,我看到一个白色片段并得到立即在 logcat 中发出此警告:

W/cr_BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 7647
W/cr_AwContents: onDetachedFromWindow called when already detached. Ignoring
I/cr_Ime: ImeThread is not enabled.
W/cr_AwContents: onDetachedFromWindow called when already detached. Ignoring
W/cr_BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 7647

【问题讨论】:

标签: java android android-fragments webview


【解决方案1】:

在我将第一个 webview 移动到片段后解决了问题 并使用了这个:

https://stackoverflow.com/a/31159185/6765618

在两个片段中

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-09-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-07-28
    • 1970-01-01
    • 2021-03-22
    相关资源
    最近更新 更多