SlidingMenu icon indicating copy to clipboard operation
SlidingMenu copied to clipboard

Added option to fix drawing issue with WebView

Open stevegaron opened this issue 12 years ago • 5 comments

I've added a switch to turn off HAL on Post-Honeycomb versions. Should help everyone who want to use this lib under Webviews.

stevegaron avatar Mar 28 '13 18:03 stevegaron

Do you think this option is necessary? To solve this I just put this on the WebView layout. android:layerType="software"

ghost avatar Apr 18 '13 22:04 ghost

Criscoso, is your webview still fast? Scrolling/pinch zooming? If so, maybe not.

Note that I may still confuse hardware acceleration and hardware layers.

Steve On Apr 19, 2013 12:04 AM, "criscoso" [email protected] wrote:

Do you think this option is necessary? To solve this I just put this on the WebView layout. android:layerType="software"

— Reply to this email directly or view it on GitHubhttps://github.com/jfeinstein10/SlidingMenu/pull/350#issuecomment-16614191 .

stevegaron avatar Apr 19 '13 06:04 stevegaron

The scroll is just fine, I can't see any problem here. I don't use zoom as I use the webview to build app like controls, I've tried to enable zooming but I can't make it work, using meta viewport tag or the websettings, I don't know what I'm missing, but pinch doesn't work.

ghost avatar Apr 20 '13 13:04 ghost

Criscoso, I just tried and can confirm that layerType="software" is not an option. Huge difference in the fluidity when scrolling in the webview on a Galaxy s3 / HOX.

cmbellman avatar Apr 26 '13 09:04 cmbellman

For me, disabling hardware acceleration at runtime at the view level only has solved the issue.

I only added webView.setLayerType(View.LAYER_TYPE_SOFTWARE, null); for both web views used for menu and main content respectively.

bonninf avatar Mar 16 '15 19:03 bonninf