title: Changing view dimensions programmatically on android
body: <p>I have two views which overlap each other and one of them acts as a master to other. I am translating all the pinching and panning to scale and adjust the master view.
  Now I wanna send this info over to the slave(Subclass of <code>android.view.View</code>). Being said that the other view doesn't respond to this dimensions. I have tried following methods</p>
  
  <pre><code>ViewGroup.LayoutParams params = this.getLayoutParams();
  params.height = height;
  params.width = width;
  this.setLayoutParams(params);this.requestLayout();
  
  setMeasuredDimension(width, height);
  
  this.setMinimumHeight(height);
  this.setMinimumWidth(width)
  </code></pre>
  
  <p>None of these seem to work.</p>
  
  <p>Using the onTouchEvent I resize my <code>TextureView</code> and send the same to the other View object. On getting this Info about change in size which is in most cases greater than the parent dimensions(and screen size) the other view should also increase/change its size.
  The subclassed view doesn't grow to the dimensions supplied to it. Moreover the increase is limited to the parent size(in my case its width: 1080 height: 1776) while it can go above that in the textureView which uses</p>
  
  <pre><code>textureView.setMinimumWidth(newWidth);
  textureView.setMinimumHeight(newHeight);
  </code></pre>
  
  <p>Any ideas as to what maybe going wrong or a trusted way to change layout/dimensions across two views?</p>