Android webview in marshmallow -


a recent update marshmallow has caused problem app's webview. layout xml:

<?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android"     android:id="@+id/errorlayout"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:orientation="vertical">      <webview         android:id="@+id/web"         android:layout_width="match_parent"             android:layout_height="wrap_content"          />       <button         android:id="@+id/dialogbuttonok"         android:layout_gravity="center"         android:layout_width="100dp"         android:layout_height="wrap_content"         android:text="@string/ok"         android:layout_margintop="5dp"         android:layout_marginend="5dp" />  </linearlayout> 

the layout used in dialog show help, examples (the app calculator), , error messages:

webview webview = (webview) dialog.findviewbyid(r.id.web); webview.getsettings().setjavascriptenabled(true); webview.getsettings().setbuiltinzoomcontrols(true); webview.loadurl("file:///android_asset/" + page); webview.setlayertype(view.layer_type_software, null);  

this worked fine in lollipop shows button @ bottom of layout instead of entire content. acts view being rendered before loadurl , sizing empty page.

thanks in advance.

edit:

screen shot of dialog box.

second screen shot shows dialog box after apps lost/returned focus


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -