I am trying to set the width and height of a view in code to show an ad for a free app I am working on. All of the UI is done in XML with the exception of this ad. Here is t
You can use something like code below, if you need to affect only specific value, and not touch others:
view.getLayoutParams().width = newWidth;