I recently came across this 
question<http://stackoverflow.com/q/16594151/779341> on 
stack overflow. 

Textfields and Textareas  when focused get a white background with a blue 
border. The webview ignores whatever css is applied in the textarea and 
draws this white background on top of it. In most of the cases it's fine, 
but if you have a nice background like the OP this is an issue.

I've tested the issue on 2.2,  2.3.3,  3.2,  4.0.3,  4.1.1,  4.1.1 and 
 4.2.2 and it only happened on 4.0.3.

So I started digging in the 4.0.3 source and I found the 
WebTextView<http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.0.3_r1/android/webkit/WebTextView.java?av=f>
 class. If you take a look on lines 233-240 the method that draws the 
background always draws a blue rectangle with a white rectangle inside. I 
believe this is the source of the problem, but I have no clue on how to 
solve it. As WebTextView class is not part of the sdk. 

I tried some javascript workarounds, like setting a timeout and changing 
the background color of the textview on a focus event, or even overlapping 
a DIV on focus and copying the text to the div. But nothing seems to get 
rid of the blue/white box. Is this a bug? Any suggestions on how to work 
around that?

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to