WebView gets stuck on Read-only Empty TEXTAREA on Samsung Galaxy S3 (Android 4.1.1) -
I have noticed that when Andrew tries to focus Webview on Textea, then only he is more empty. The keyboard comes up and definitely does not input anything in TEXTAREA, but after that WebView is stuck.
I can only dismiss the keyboard using the "back" key, but no other function can be executed. Nothing can be done except restarting the entire application
I continue this verbose message in the LOGCAT console against the webview.
Single Cursor Handler TouchWeek ~ GetEditableSupport FASLE This is only on the Samsung S3 device running Android 4.1.1 and the Samsung Nexus S (Android 4.1 . 2) works perfectly. ) And 4.1.2 Android Emulator.
This standalone Webview with example
increases the PublicWare TestWebViewTextStylesActivity Activity {WebView mWebView = null; Override public null on @reate (bundle saved instainstate) {super.naught (savedinstenstate); String data = "& lt; html> & lt; body & gt;" + "& Lt; TextRere lines = '3' id = 'ABCD' to read only = 'Readable' name = 'ABCD'> + "& Lt; / body & gt; & lt; / html & gt;"; MWebView = New WebView (this); SetContentView (mWebView); // Set some HTML mWebView.loadDataWithBaseURL ("File: /// and Android_set /", data, "text / html", "UTF-8", blank); I got the solution after looking after various options after half an day in the middle of the day. & lt; Textarea rows = "3" id = "ABCD" to read only = The solution was very easy to present a location between textteigh HTML tags. Read only "name =" abcd "& gt; & lt; / text field & gt; _____________________________________________________________ || ___________ ________________________________________________INSERTED___SPACE ___HERE__
And I have also seen that BLANK through JSON Setting the .innerText attribute for the string can also cause textweaver to cause webpage freeze. This location is also required without which the browser assumes all the HTML values, After that TEXTAREA also falls under TEXTAREA, so the correct way is to enter a single location. And then have to complete the TextAra ( & lt; / TEXTAREA & gt; ) You can not find this blank space for written HTML elements, or by user If the input is prefixed with the value, then I had to type a JS method that would empty the value that I had to inject before setting it on the webview. The function specified explicit TARIID) {var x = document.getElementB YId (textairid); Var isReadOnly = false; If (x.has properties ('read only')) {isReadOnly = x.readOnly; } If (isReadOnly == incorrect) {if (customMethodToTrimString (x.innerText) == '') {x.innerText = ''; }}}
Comments
Post a Comment