As part of an Android App I am building a button set. The buttons are part of a nested set of LinearLayouts. Using weight I have the set resizing itself automatically based
my sample code
wv = (WebView) findViewById(R.id.mywebview); wv.getLayoutParams().height = LayoutParams.MATCH_PARENT; // LayoutParams: android.view.ViewGroup.LayoutParams // wv.getLayoutParams().height = LayoutParams.WRAP_CONTENT; wv.requestLayout();//It is necesary to refresh the screen