My Android app consists of several activities, each responsible for a single fragment (for now). My fragments are usually displayed/attached somewhat like this:
I finally found the issue. Switching off hardware acceleration for the WebView solves it.
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle saved) {
//...
if (Utils.isKitkat()) {
disableHardwareAcc();
}
//...
}
@TargetApi(Build.VERSION_CODES.HONEYCOMB)
protected void disableHardwareAcc() {
mWebView.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
}