Я создал сворачиваемый раздел в fiddler с помощью jquery mobile, который отлично работает, и весь раздел сворачивается https://jsfiddle.net/ashishrawat/cduhkLm0/
However when i take the same page and display it in webview, it doesn't work. I have inspected it in chrome and I get the same element(html) as jsfiddle, excluding the header, also there is no error in console.
My page rendering code in android is pretty standard
webView.addJavascriptInterface(
inspectView.new SurveyJSInterface(), "HTMLOUT");
//webView.loadUrl(mSurveyUrl);
//webView.loadDataWithBaseURL("file:///android_asset/", fileContent, "text/html", "UTF-8", null);
webView.loadDataWithBaseURL("file:///android_asset/index.html", fileContent, "text/html", "UTF-8", null);
webView.setInitialScale(1);
webView.getSettings().setSaveFormData(true);
webView.getSettings().setLoadWithOverviewMode(true);
webView.getSettings().setUseWideViewPort(true);
Раздел заголовка $(document).bind('mobileinit',function(){ $.mobile.pushStateEnabled = false; });
Единственная разница, которую я мог видеть, заключается в том, что скрипач использует jquery 1.4.4, а я локально использую 1.4.5. Однако я не думаю, что это имеет значение. Пожалуйста, предложите!