I have a survey type of form that spits out a response after the user presses submit. This is using the webview client so I can easily modify the CSS before I override the URL. However, After pressing submit, the style has a black font (and other unwanted things). Is there a way to change the text color of the WebTextView?
Ultimately, it would be ideal to override this, but it looks like I can't:
WebTextView(Context context, WebView webView, int autoFillQueryId) { super(context, null, com.android.internal.R.attr.webTextViewStyle);
mWebView = webView;
mMaxLength = -1;
setAutoFillable(autoFillQueryId);
// Turn on subpixel text, and turn off kerning, so it better matches
// the text in webkit.
TextPaint paint = getPaint();
int flags = paint.getFlags() & ~Paint.DEV_KERN_TEXT_FLAG
| Paint.SUBPIXEL_TEXT_FLAG | Paint.DITHER_FLAG;
paint.setFlags(flags);
// Set the text color to black, regardless of the theme. This ensures
// that other applications that use embedded WebViews will properly
// display the text in password textfields.
setTextColor(DebugFlags.DRAW_WEBTEXTVIEW ? Color.RED : Color.BLACK);