SlidingMenu
SlidingMenu copied to clipboard
Added option to fix drawing issue with WebView
I've added a switch to turn off HAL on Post-Honeycomb versions. Should help everyone who want to use this lib under Webviews.
Do you think this option is necessary? To solve this I just put this on the WebView layout. android:layerType="software"
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 .
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.
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.
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.