I have a webview and a adview and when I click on an item in the webview I want to hide the adview and make the webview take up the full screen. I have the adview being hidden but then my webview actually shrinks some. So I want to set it so it goes full screen when I click the item. I tried using the following in the on touch event but it just crashes the app.
webview.setLayoutParams(newLayoutParams(Gravity.FILL,LayoutParams.WRAP_CONTENT));
Any help would be greatly appreciated.
Why not try with something like
This should refresh your view.