Fix error when inflating WebView

It was impossible to inflate WebView from resources since its method setLayoutParams did nothing.