title: Android dynamically change layout size
body: <p>I would like a square <code>FrameLayout</code> that fills the width of it's parent and whose height matches it's width. I've tried adding an <strong>addOnLayoutChangeListener</strong> to the layout, but I can't call <code>requestLayout</code> on it from inside that so I have no way to tell it to resize. </p>
  
  <p>What can I do to make it's height equal to it's width at runtime?</p>