我有一个PHP页面,其中显示一些文本和一个Bootstrap 3.4.1图像轮播,使用Chrome可以正常运行。
但是,如果我将其显示在Android Studio的WebView上,则该页面(带有“轮播”)显示为正常,但轮播不会移动,请勿滑动,并且上一个/下一个按钮不起作用。
<WebView
android:id="@+id/wvContenido"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
tools:ignore="MissingConstraints" />
同样,该页面在Chrome(Android和Windows)上也可以正常工作
帮助请
我尝试从资产文件夹加载页面,从本地服务器URL和Web服务器URL加载。结果相同。
WebView wv = (WebView) findViewById(R.id.wvContenido);
//wv.loadUrl("file:///android_asset/contenido/cursos_1_1.php");
wv.loadUrl("http://172.28.1.153/siiees/contenido/cursos_1_1.php");
wv.getSettings().setBuiltInZoomControls(true);
wv.getSettings().setDisplayZoomControls(false);