webview

Youtube videos embedded in Android Webview don't play in SINGLE_COLUMN layout

半腔热情 提交于 2020-01-01 12:08:19
问题 I am trying to load some HTML data into Android Webview. The data is in the form of string that is loaded from a web service and the HTML can contain embedded youtube videos which I want to embed inline and make playable. Everything works fine with LayoutAlgorithm.NORMAL . But when I use the SINGLE_COLUMN layout algorithm, the Youtube videos show up as black boxes that cannot be played anymore. I need a single column format as the images inside the HTML overflow the webview width in NORMAL

Android webview keep user logged in

允我心安 提交于 2020-01-01 10:46:29
问题 I am developing an android application. It is a simple application containing a webview which will load my mvc website. First page of my application is login page.Once user logs in to the system application page is shown. Requirement - Is it possible for webview to remember the credentials and allow the auto log in to system when he/she visits next time? need help. Following is main activity code. public class MainActivity extends Activity { WebView webView; String loginUrl = "mail.xyzabcd

Why isn't my WebView filling up the entire width of my screen?

北战南征 提交于 2020-01-01 10:44:29
问题 My WebView doesn't fill the entire width of my phone. I am telling to fill_parent. Not sure why? <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal"> <WebView android:layout_height="fill_parent" android:layout_width="fill_parent" android:id="@+id/WebView"></WebView> </LinearLayout> 回答1: The linear layout is orientation horizontal I

Android WebView WebChromeClient : inaccurate progress value in onProgressChanged()

旧街凉风 提交于 2020-01-01 10:15:28
问题 I need to access the progress value in WebView -> WebChromeClient -> onProgressChanged(). The progress integer value doesn't increment from 0 to 100 but rather jumps around. Here is a sample log-output from loading one page and the associated progress numbers: DEBUG: progress : 10 DEBUG: progress : 100 DEBUG: progress : 10 DEBUG: progress : 100 DEBUG: progress : 10 DEBUG: progress : 100 DEBUG: progress : 10 DEBUG: progress : 10 DEBUG: progress : 100 DEBUG: progress : 10 DEBUG: progress : 100

Scroll view doesn't resize when the content of child view changes

血红的双手。 提交于 2020-01-01 08:45:11
问题 I have a WebView inside the ScrollView . The content of WebView dyanamically changes when it displays different html page. I have the following issue: For example I have A.html , and B.html . The content of B.html is larger than A.html , so the page is longer. When WebView load B.html , the ScrollView stretches its size to enable itself scroll for B.html, then if I go back to A.html , ScrollView doesn't resize itself. (The scroll area is exceed the content of A.html ) What I want to have, is

Scroll view doesn't resize when the content of child view changes

本秂侑毒 提交于 2020-01-01 08:42:30
问题 I have a WebView inside the ScrollView . The content of WebView dyanamically changes when it displays different html page. I have the following issue: For example I have A.html , and B.html . The content of B.html is larger than A.html , so the page is longer. When WebView load B.html , the ScrollView stretches its size to enable itself scroll for B.html, then if I go back to A.html , ScrollView doesn't resize itself. (The scroll area is exceed the content of A.html ) What I want to have, is

Scroll view doesn't resize when the content of child view changes

眉间皱痕 提交于 2020-01-01 08:41:25
问题 I have a WebView inside the ScrollView . The content of WebView dyanamically changes when it displays different html page. I have the following issue: For example I have A.html , and B.html . The content of B.html is larger than A.html , so the page is longer. When WebView load B.html , the ScrollView stretches its size to enable itself scroll for B.html, then if I go back to A.html , ScrollView doesn't resize itself. (The scroll area is exceed the content of A.html ) What I want to have, is

(How) can I increase the quota limit of LocalStorage in Android WebView

家住魔仙堡 提交于 2020-01-01 08:36:27
问题 I need to increase the default quota limit of the LocalStorage in a Android WebView. Currently I can only use around 2.5MB. When trying to store more data, a quota_exceeded_err (dom exception 22) is raised. Any ideas or do I have to switch to db/file system ? 回答1: We're talking about HTML5 WebStorage DOCS There is plenty of question on the same theme, only not Android-specific HTML5 localStorage size limit for subdomains What is the max size of localStorage values? HTML5 LocalStorage size

Phonegap KeyboardShrinksView and position fixed on iOS not applying correctly

烂漫一生 提交于 2020-01-01 07:39:12
问题 I use the 2.9.0 version of Phonegap and I want that when the keyboard appears my WebView shrinks like it's done in Android phonegap apps. I have footer and header elements in fixed position, and when the keyboard is open it causes trouble (the footer and header loose their fixed position state). I think the KeyboardShrinksView settings could fix that, according to the phonegap documentation : http://docs.phonegap.com/en/2.9.0rc1/guide_project-settings_ios_index.md.html#Project%20Settings

Run some Javascript in Flutter Webview

a 夏天 提交于 2020-01-01 06:45:43
问题 how I can run Javascript in the flutter_webview_plugin. I try it with this. onPressed: () { flutterWebviewPlugin.evalJavascript('<script language="JavaScript" type="text/javascript">alert("Hello World")</script>'); }, But nothing happens. I thougt with flutterWebviePlugin.evalJavascript it is posible to run Javascript in a Webview. Do I some wrong? 回答1: flutterWebviewPlugin.evalJavascript('<script language="JavaScript" type="text/javascript">alert("Hello World")</script>') expects JavaScript,