Android WebView Hardware Rendering Weird Artifact Issue
Thanks to Delyan for solving the issue. How he told me to solve it was to add -webkit-transform: translate3d(0,0,0)
to all parts that move.
KUDOS DELYAN!
Android Webview Rendering Issue
I solved issue with remove some animation css. I think this issue similar this link when using hardware hardwareaccelerated
Solving Rendering Artifacts in Frame Buffer with WebView and EditText on Android 5.0?
Ended up solving this by changing softInputMode (similar to previous WebView/Keyboard issues, but this time with a native View and EditText).
getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE);
Android - html from android_assets in WebView, CSS not loading in ICS
Found the issue! It turns out that there is a rather big bug in the browser for ICS and presumably Honeycomb based on a test. In the logcat I get the following error: Unknown chromium error: -6. Removing the querystring solves the issue (although screws up my functionality). There is a bug report for it here if anyone else is having the same issues.
Hardware Acceleration stops working on new APIs
Tested on API 18:
Perform the check by posting a Runnable
to the WebView
:
WebView webView = (WebView) findViewById(R.id.webview_id);
// Shows: "Is hardware accelerated? false"
// Toast.makeText(YourActivity.this, "Is hardware accelerated? " +
// webView.isHardwareAccelerated(),
// Toast.LENGTH_LONG).show();
webView.post(new Runnable() {
@Override
public void run() {
Shows: "Is hardware accelerated? true"
Toast.makeText(YourActivity.this, "Is hardware accelerated? " +
webView.isHardwareAccelerated(),
Toast.LENGTH_LONG).show();
if (webView.isHardwareAccelerated()) {
// isAccelerated();
} else {
// isNotAccelerated();
}
}
});
From resource page on Hardware Acceleration:
Hardware acceleration is enabled by default if your Target API level
is >=14, but can also be explicitly enabled.
If the image you are displaying is still pixelated, try setting:
webView.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
and see if pixelation of the image gets better.
Consider reading the resource page on Hardware Acceleration.
Related Topics
Firebase Retrieve Data Null Outside Method
Shared Preferences Reset Data When App Is Force Closed or Device Is Restarted
Firestorepagingadapter Not Receiving Realtime Updates
Android: HTML Anchor Link Works Only Once in Webview
Stop All Toast Messages When Going to Another Screen in Android
Activity.Finish() Called But Activity Stays Loaded in Memory
What Does Fragmentmanager and Fragmenttransaction Exactly Do
Android Browser Bug? Div Overflow Scrolling
Mobile Keyboard Pushes Up Content Because of an Absolutely Positioned Drawer
Android Httpclient File Upload Data Corruption and Timeout Issues
How Many Activities Vs Fragments
Equivalent of Listview.Setemptyview in Recyclerview
Create Free/Paid Versions of Application from Same Code
How to Use Firebase Functions to Send Fcm to User
Android Studio on a Hardware That Does Not Support Virtualization Technology