title: Android resize text edit control
body: <p>I've got a text edit, and I'm trying to re-size it when the screen resizes (because of the keyboard)</p>
  
  <pre><code>@Override
      protected void onSizeChanged (int w, int h, int oldw, int oldh){
          super.onSizeChanged(w,h,oldw,oldh);
          if(m_editScreen != null){
              LayoutParams par = (LayoutParams) m_editScreen.getLayoutParams();
              par.height = h - 30;
              m_editScreen.setLayoutParams(par);          
          }
      }   
  </code></pre>
  
  <p>When tap into the text area the box resizes down to the right height.. (30 is the top offset)
  When I close the keyboard, the text box stays small.  Even though the h value is back to the original.</p>
  
  <p>Is there something I'm missing?   I really didn't expect positioning controls would be so hard.  </p>