You can use something like code below, if you need to affect only specific value, and not touch others:
view.getLayoutParams().width = newWidth;
You can use something like code below, if you need to affect only specific value, and not touch others:
view.getLayoutParams().width = newWidth;